Struct ClassLayoutRaw
pub struct ClassLayoutRaw {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub packing_size: u16,
pub class_size: u32,
pub parent: u32,
}Expand description
The ClassLayout table specifies the layout of fields within a class (explicit layout), TableId = 0x0F
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
packing_size: u16a 2-byte value, specifying the alignment of fields
class_size: u32a 4-byte value, specifying the size of the class
parent: u32an index into the TypeDef table
Implementations§
§impl ClassLayoutRaw
impl ClassLayoutRaw
pub fn apply(&self, types: &TypeRegistry) -> Result<()>
pub fn apply(&self, types: &TypeRegistry) -> Result<()>
pub fn to_owned(&self, types: &TypeRegistry) -> Result<ClassLayoutRc>
pub fn to_owned(&self, types: &TypeRegistry) -> Result<ClassLayoutRc>
Trait Implementations§
§impl Clone for ClassLayoutRaw
impl Clone for ClassLayoutRaw
§fn clone(&self) -> ClassLayoutRaw
fn clone(&self) -> ClassLayoutRaw
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 more§impl Debug for ClassLayoutRaw
impl Debug for ClassLayoutRaw
§impl<'a> RowDefinition<'a> for ClassLayoutRaw
impl<'a> RowDefinition<'a> for ClassLayoutRaw
Auto Trait Implementations§
impl Freeze for ClassLayoutRaw
impl RefUnwindSafe for ClassLayoutRaw
impl Send for ClassLayoutRaw
impl Sync for ClassLayoutRaw
impl Unpin for ClassLayoutRaw
impl UnwindSafe for ClassLayoutRaw
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more