pub struct ComplexSlot<'s> { /* private fields */ }Expand description
One positional slot of a partial record.
Implementations§
Source§impl<'s> ComplexSlot<'s>
impl<'s> ComplexSlot<'s>
Sourcepub fn is_derived(&self) -> bool
pub fn is_derived(&self) -> bool
Whether another type in the instance redeclares this attribute as
derived (DERIVE SELF\X.a : T := ...;).
A conforming file writes such a slot as * (§12.2.6). This is a
property of the whole instance, not of the declaring entity alone:
NAMED_UNIT(*) in (LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(..)) is *
because si_unit derives named_unit.dimensions.
Trait Implementations§
Source§impl<'s> Clone for ComplexSlot<'s>
impl<'s> Clone for ComplexSlot<'s>
impl<'s> Copy for ComplexSlot<'s>
Auto Trait Implementations§
impl<'s> Freeze for ComplexSlot<'s>
impl<'s> RefUnwindSafe for ComplexSlot<'s>
impl<'s> Send for ComplexSlot<'s>
impl<'s> Sync for ComplexSlot<'s>
impl<'s> Unpin for ComplexSlot<'s>
impl<'s> UnsafeUnpin for ComplexSlot<'s>
impl<'s> UnwindSafe for ComplexSlot<'s>
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