Struct PropertyRaw
pub struct PropertyRaw {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub flags: u32,
pub name: u32,
pub signature: u32,
}Expand description
The Property table defines properties for types. Each entry includes the property name, flags, and signature. TableId = 0x17
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
flags: u32a 2-byte bitmask of type PropertyAttributes, §II.23.1.14
name: u32an index into the String heap
signature: u32an index into the Blob heap
Implementations§
§impl PropertyRaw
impl PropertyRaw
pub fn to_owned(
&self,
strings: &Strings<'_>,
blob: &Blob<'_>,
) -> Result<PropertyRc>
pub fn to_owned( &self, strings: &Strings<'_>, blob: &Blob<'_>, ) -> Result<PropertyRc>
Convert an PropertyRaw, into a Property which has indexes resolved and owns the referenced data
§Errors
Returns an error if the property name cannot be retrieved from the strings heap or if the property signature cannot be parsed from the blob heap.
§Arguments
- ‘strings’ - The #String heap
- ‘blob’ - The #Blob heap
pub fn apply(&self) -> Result<()>
pub fn apply(&self) -> Result<()>
Apply a PropertyRaw entry to update related metadata structures.
Property entries define properties that types can expose. They are associated with types but don’t themselves modify other metadata during the dual variant resolution phase. Property methods (getter, setter, etc.) are resolved separately through method resolution.
§Errors
Always returns Ok(()) as Property entries don’t modify other tables directly.
Trait Implementations§
§impl Clone for PropertyRaw
impl Clone for PropertyRaw
§fn clone(&self) -> PropertyRaw
fn clone(&self) -> PropertyRaw
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PropertyRaw
impl Debug for PropertyRaw
§impl<'a> RowDefinition<'a> for PropertyRaw
impl<'a> RowDefinition<'a> for PropertyRaw
Auto Trait Implementations§
impl Freeze for PropertyRaw
impl RefUnwindSafe for PropertyRaw
impl Send for PropertyRaw
impl Sync for PropertyRaw
impl Unpin for PropertyRaw
impl UnwindSafe for PropertyRaw
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
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>
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>
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