Struct TypeSpec
pub struct TypeSpec {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub signature: SignatureTypeSpec,
}Expand description
The TypeSpec table defines type specifications through signatures. Similar to TypeSpecRaw but
with resolved indexes and owned data
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
signature: SignatureTypeSpecThe parsed type specification signature
Implementations§
§impl TypeSpec
impl TypeSpec
pub fn apply(&self) -> Result<()>
pub fn apply(&self) -> Result<()>
Apply a TypeSpec entry to update related metadata structures.
TypeSpec entries define type specifications through signatures. They are primarily
type definitions and don’t require cross-table updates during the dual variant
resolution phase.
§Errors
Always returns Ok(()) as TypeSpec entries don’t modify other tables.
Auto Trait Implementations§
impl Freeze for TypeSpec
impl RefUnwindSafe for TypeSpec
impl Send for TypeSpec
impl Sync for TypeSpec
impl Unpin for TypeSpec
impl UnwindSafe for TypeSpec
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> 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