Struct GenericParam
pub struct GenericParam {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub number: u32,
pub flags: u32,
pub owner: OnceLock<CilTypeReference>,
pub constraints: CilTypeRefList,
pub name: String,
pub custom_attributes: CustomAttributeValueList,
}Expand description
The GenericParam table defines generic parameters for generic types and methods. Similar to GenericParamRaw but
with resolved indexes and owned data
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
number: u32a 2-byte index of the generic parameter, numbered left-to-right, from zero
flags: u32a 2-byte bitmask of type GenericParamAttributes, §II.23.1.7
owner: OnceLock<CilTypeReference>The owner of this GenericParam
constraints: CilTypeRefListThe contrained type that applies to this GenericParam
name: StringName of the generic parameter
custom_attributes: CustomAttributeValueListCustom attributes applied to this GenericParam
Implementations§
Auto Trait Implementations§
impl !Freeze for GenericParam
impl RefUnwindSafe for GenericParam
impl Send for GenericParam
impl Sync for GenericParam
impl Unpin for GenericParam
impl UnwindSafe for GenericParam
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