[−][src]Struct ra_ap_hir::Struct
Implementations
impl Struct
[src]
pub fn module(self, db: &dyn HirDatabase) -> Module
[src]
pub fn krate(self, db: &dyn HirDatabase) -> Option<Crate>
[src]
pub fn name(self, db: &dyn HirDatabase) -> Name
[src]
pub fn fields(self, db: &dyn HirDatabase) -> Vec<Field>
[src]
pub fn ty(self, db: &dyn HirDatabase) -> Type
[src]
pub fn repr(self, db: &dyn HirDatabase) -> Option<ReprKind>
[src]
Trait Implementations
impl Clone for Struct
[src]
impl Copy for Struct
[src]
impl Debug for Struct
[src]
impl Eq for Struct
[src]
impl From<Struct> for StructId
[src]
impl From<Struct> for ModuleDef
[src]
impl From<Struct> for Adt
[src]
impl From<Struct> for VariantDef
[src]
fn from(it: Struct) -> VariantDef
[src]
impl From<Struct> for GenericDef
[src]
fn from(it: Struct) -> GenericDef
[src]
impl From<StructId> for Struct
[src]
impl HasAttrs for Struct
[src]
fn attrs(self, db: &dyn HirDatabase) -> Attrs
[src]
fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>
[src]
impl HasSource for Struct
[src]
impl Hash for Struct
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Struct> for Struct
[src]
impl StructuralEq for Struct
[src]
impl StructuralPartialEq for Struct
[src]
Auto Trait Implementations
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Self: CastTo<U>,
U: HasInterner,
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,