pub struct FieldSpec<'a> {
pub name: &'a str,
pub doc: &'a str,
pub type_name: &'a str,
pub offset: usize,
pub size: usize,
pub align: usize,
pub since: u32,
}Expand description
Description of a single field within a Manifest.
Fields§
§name: &'a strField identifier.
doc: &'a strThe field’s doc comment (joined /// lines), or "" if undocumented.
type_name: &'a strSpelled type, e.g. "u32".
offset: usizeByte offset within the struct (offset_of!).
size: usizesize_of of the field type.
align: usizealign_of of the field type.
since: u32Schema version in which the field was introduced.
Trait Implementations§
impl<'a> Copy for FieldSpec<'a>
impl<'a> Eq for FieldSpec<'a>
Source§impl<'a> PartialEq for FieldSpec<'a>
impl<'a> PartialEq for FieldSpec<'a>
impl<'a> StructuralPartialEq for FieldSpec<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldSpec<'a>
impl<'a> RefUnwindSafe for FieldSpec<'a>
impl<'a> Send for FieldSpec<'a>
impl<'a> Sync for FieldSpec<'a>
impl<'a> Unpin for FieldSpec<'a>
impl<'a> UnsafeUnpin for FieldSpec<'a>
impl<'a> UnwindSafe for FieldSpec<'a>
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