/// Structs that can only be returned from methods. pubtype OutStructDef = StructDef<OutputOnly>;
/// Structs that can be either inputs or outputs in methods. #[derive(Debug)] #[non_exhaustive] pubstruct StructDef<P: TyPosition = Everywhere> { pub docs: Docs, pub name: IdentBuf, pub fields: Vec<StructField<P>>, pub methods: Vec<Method>, pub attrs: Attrs, pub lifetimes: LifetimeEnv, pub special_method_presence: SpecialMethodPresence,
}
/// A struct whose contents are opaque across the FFI boundary, and can only /// cross when behind a pointer. /// /// All opaques can be inputs or outputs when behind a reference, but owned /// opaques can only be returned since there isn't a general way for most languages /// to give up ownership. /// /// A struct marked with `#[diplomat::opaque]`. #[derive(Debug)] #[non_exhaustive] pubstruct OpaqueDef { pub docs: Docs, pub name: IdentBuf, pub methods: Vec<Method>, pub attrs: Attrs, pub lifetimes: LifetimeEnv, pub special_method_presence: SpecialMethodPresence,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.