pub struct StructDefinition {
pub layout: DataLayout,
pub component_type: DataType,
pub method_definitions: Vec<FunctionDefinition>,
}
Expand description
The information necessary to define a component including the component ID and the memory layout.
Fields§
§layout: DataLayout
The size and alignment of the component
component_type: DataType
The type of component this is
method_definitions: Vec<FunctionDefinition>
The definitions of the methods associated to to the [method_pointers
] with the same index.
Trait Implementations§
Source§impl Clone for StructDefinition
impl Clone for StructDefinition
Source§fn clone(&self) -> StructDefinition
fn clone(&self) -> StructDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StructDefinition
impl Debug for StructDefinition
Source§impl<'de> Deserialize<'de> for StructDefinition
impl<'de> Deserialize<'de> for StructDefinition
Source§fn 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
Source§impl HasDataLayout for StructDefinition
impl HasDataLayout for StructDefinition
fn get_data_layout(&self) -> DataLayout
Auto Trait Implementations§
impl Freeze for StructDefinition
impl RefUnwindSafe for StructDefinition
impl Send for StructDefinition
impl Sync for StructDefinition
impl Unpin for StructDefinition
impl UnwindSafe for StructDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more