pub struct Slot(/* private fields */);Expand description
Slots represent Variable names.
Internally, they are just a number.
Implementations§
Trait Implementations§
Source§impl LanguageChildren for Slot
impl LanguageChildren for Slot
fn all_slot_occurrences_iter_mut(&mut self) -> impl Iterator<Item = &mut Slot>
fn public_slot_occurrences_iter_mut( &mut self, ) -> impl Iterator<Item = &mut Slot>
fn applied_id_occurrences_iter_mut( &mut self, ) -> impl Iterator<Item = &mut AppliedId>
fn all_slot_occurrences_iter(&self) -> impl Iterator<Item = &Slot>
fn public_slot_occurrences_iter(&self) -> impl Iterator<Item = &Slot>
fn applied_id_occurrences_iter(&self) -> impl Iterator<Item = &AppliedId>
fn to_syntax(&self) -> Vec<SyntaxElem>
fn from_syntax(elems: &[SyntaxElem]) -> Option<Self>
fn weak_shape_impl(&mut self, m: &mut (SlotMap, u32))
Source§impl Ord for Slot
impl Ord for Slot
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Slot
impl PartialOrd for Slot
impl Copy for Slot
impl Eq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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