pub struct Label { /* private fields */ }
Implementations§
source§impl Label
impl Label
pub fn module(self, db: &dyn HirDatabase) -> Module
pub fn parent(self, _db: &dyn HirDatabase) -> DefWithBody
pub fn name(self, db: &dyn HirDatabase) -> Name
pub fn source(self, db: &dyn HirDatabase) -> InFile<Label>
Trait Implementations§
source§impl From<(DefWithBodyId, Idx<Label>)> for Label
impl From<(DefWithBodyId, Idx<Label>)> for Label
source§fn from((parent, label_id): (DefWithBodyId, LabelId)) -> Self
fn from((parent, label_id): (DefWithBodyId, LabelId)) -> Self
Converts to this type from the input type.
source§impl PartialEq for Label
impl PartialEq for Label
impl Copy for Label
impl Eq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.