Struct ra_ap_hir_def::StaticId [−][src]
pub struct StaticId(_);
Trait Implementations
impl From<StaticId> for ModuleDefId
[src]
impl From<StaticId> for ModuleDefId
[src]fn from(it: StaticId) -> ModuleDefId
[src]
fn from(it: StaticId) -> ModuleDefId
[src]Performs the conversion.
impl From<StaticId> for DefWithBodyId
[src]
impl From<StaticId> for DefWithBodyId
[src]fn from(it: StaticId) -> DefWithBodyId
[src]
fn from(it: StaticId) -> DefWithBodyId
[src]Performs the conversion.
impl HasResolver for StaticId
[src]
impl HasResolver for StaticId
[src]fn resolver(self, db: &dyn DefDatabase) -> Resolver
[src]
fn resolver(self, db: &dyn DefDatabase) -> Resolver
[src]Builds a resolver for type references inside this def.
impl InternKey for StaticId
[src]
impl InternKey for StaticId
[src]fn from_intern_id(v: InternId) -> Self
[src]
fn from_intern_id(v: InternId) -> Self
[src]Create an instance of the intern-key from a u32
value.
fn as_intern_id(&self) -> InternId
[src]
fn as_intern_id(&self) -> InternId
[src]Extract the u32
with which the intern-key was created.
impl Copy for StaticId
[src]
impl Eq for StaticId
[src]
impl StructuralEq for StaticId
[src]
impl StructuralPartialEq for StaticId
[src]
Auto Trait Implementations
impl RefUnwindSafe for StaticId
impl Send for StaticId
impl Sync for StaticId
impl Unpin for StaticId
impl UnwindSafe for StaticId
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
[src]
T: Any + Clone,