Struct GenericParamConstraintRaw
pub struct GenericParamConstraintRaw {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub owner: u32,
pub constraint: CodedIndex,
}Expand description
The GenericParamConstraint table defines constraints on generic parameters. TableId = 0x2C
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
owner: u32an index into the GenericParam table
constraint: CodedIndexan index into the TypeDefOrRef coded index
Implementations§
§impl GenericParamConstraintRaw
impl GenericParamConstraintRaw
pub fn apply(
&self,
generic_params: &GenericParamMap,
types: &TypeRegistry,
) -> Result<()>
pub fn apply( &self, generic_params: &GenericParamMap, types: &TypeRegistry, ) -> Result<()>
pub fn to_owned(
&self,
generic_params: &GenericParamMap,
types: &TypeRegistry,
) -> Result<GenericParamConstraintRc>
pub fn to_owned( &self, generic_params: &GenericParamMap, types: &TypeRegistry, ) -> Result<GenericParamConstraintRc>
Convert an GenericParamConstraintRaw, into a GenericParamConstraint which has indexes resolved and owns the referenced data
§Arguments
- ‘
generic_params’ - All parsedGenericParamentries - ‘types’ - All parsed
TypeDef,TypeRefandTypeSpecentries
§Errors
Returns an error if generic parameter or constraint type lookup fails
Trait Implementations§
§impl Clone for GenericParamConstraintRaw
impl Clone for GenericParamConstraintRaw
§fn clone(&self) -> GenericParamConstraintRaw
fn clone(&self) -> GenericParamConstraintRaw
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 GenericParamConstraintRaw
impl Debug for GenericParamConstraintRaw
§impl<'a> RowDefinition<'a> for GenericParamConstraintRaw
impl<'a> RowDefinition<'a> for GenericParamConstraintRaw
Auto Trait Implementations§
impl Freeze for GenericParamConstraintRaw
impl RefUnwindSafe for GenericParamConstraintRaw
impl Send for GenericParamConstraintRaw
impl Sync for GenericParamConstraintRaw
impl Unpin for GenericParamConstraintRaw
impl UnwindSafe for GenericParamConstraintRaw
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