Struct telety_impl::alias::Map
source · pub struct Map { /* private fields */ }Implementations§
source§impl Map
impl Map
sourcepub fn alias_of(&self, ty: &Type) -> Option<Alias<'_>>
pub fn alias_of(&self, ty: &Type) -> Option<Alias<'_>>
Look up the Alias of a given type.
Returns None if there is no alias for the type.
Note that lookup is done based on exact token equality, not type equality.
Equivalent to Self::get_index followed by Self::alias.
sourcepub fn iter(&self) -> Iter<'_>
pub fn iter(&self) -> Iter<'_>
Iterate through all alias::Indexes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl !Send for Map
impl !Sync for Map
impl Unpin for Map
impl UnwindSafe for Map
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