Struct EventRaw
pub struct EventRaw {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub flags: u32,
pub name: u32,
pub event_type: CodedIndex,
}Expand description
The Event table defines events for types. Each entry includes the event name, flags, and event type. TableId = 0x14
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
flags: u32a 2-byte bitmask of type EventAttributes, §II.23.1.4
name: u32an index into the String heap
event_type: CodedIndexan index into a TypeDef, a TypeRef, or TypeSpec table; more precisely, a TypeDefOrRef (§II.24.2.6) coded index
Implementations§
§impl EventRaw
impl EventRaw
pub fn to_owned(
&self,
strings: &Strings<'_>,
types: &TypeRegistry,
) -> Result<EventRc>
pub fn to_owned( &self, strings: &Strings<'_>, types: &TypeRegistry, ) -> Result<EventRc>
pub fn apply(&self) -> Result<()>
pub fn apply(&self) -> Result<()>
Apply an EventRaw entry to update related metadata structures.
Event entries define events that types can expose. They are associated with types but don’t themselves modify other metadata during the dual variant resolution phase. Event methods (add, remove, etc.) are resolved separately through method resolution.
§Errors
Always returns Ok(()) as Event entries don’t modify other tables directly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventRaw
impl RefUnwindSafe for EventRaw
impl Send for EventRaw
impl Sync for EventRaw
impl Unpin for EventRaw
impl UnwindSafe for EventRaw
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