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<Label> for Label
impl PartialEq<Label> for Label
impl Copy for Label
impl Eq for Label
impl StructuralEq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
Blanket Implementations§
§impl<T> Cast for T
impl<T> Cast for T
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.