pub struct Struct<F, D>where
F: StructFieldType,
D: DocReference,{ /* private fields */ }
Expand description
C-style structure definition
Implementations§
Source§impl<F, D> Struct<F, D>where
F: StructFieldType,
D: DocReference,
impl<F, D> Struct<F, D>where
F: StructFieldType,
D: DocReference,
pub fn settings(&self) -> &LibrarySettings
pub fn find_field_name(&self, name: &str) -> Option<Name>
pub fn name(&self) -> &Name
pub fn declaration(&self) -> StructDeclarationHandle
pub fn initializer_args( &self, initializer: Handle<Initializer<D>>, ) -> impl Iterator<Item = &StructField<F, D>>
pub fn fields(&self) -> impl Iterator<Item = &StructField<F, D>>
pub fn has_default_initializer(&self) -> bool
pub fn has_full_initializer(&self) -> bool
pub fn get_default_initializer(&self) -> Option<&Handle<Initializer<D>>>
pub fn get_full_initializer(&self) -> Option<&Handle<Initializer<D>>>
Trait Implementations§
Auto Trait Implementations§
impl<F, D> Freeze for Struct<F, D>
impl<F, D> RefUnwindSafe for Struct<F, D>where
F: RefUnwindSafe,
D: RefUnwindSafe,
impl<F, D> !Send for Struct<F, D>
impl<F, D> !Sync for Struct<F, D>
impl<F, D> Unpin for Struct<F, D>
impl<F, D> UnwindSafe for Struct<F, D>
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