Struct diplomat_core::ast::Struct
source · [−]pub struct Struct {
pub name: String,
pub docs: Docs,
pub fields: Vec<(String, TypeName, Docs)>,
pub methods: Vec<Method>,
}Expand description
A struct declaration in an FFI module that is not opaque.
Fields
name: Stringdocs: Docsfields: Vec<(String, TypeName, Docs)>A list of fields in the struct. (name, type, docs)
methods: Vec<Method>Trait Implementations
sourceimpl<'de> Deserialize<'de> for Struct
impl<'de> Deserialize<'de> for Struct
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<&'_ ItemStruct> for Struct
impl From<&'_ ItemStruct> for Struct
sourcefn from(strct: &ItemStruct) -> Struct
fn from(strct: &ItemStruct) -> Struct
Extract a Struct metadata value from an AST node.
impl Eq for Struct
impl StructuralEq for Struct
impl StructuralPartialEq for Struct
Auto Trait Implementations
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more