pub struct ConstData {
pub name: Option<Name>,
pub type_ref: Interned<TypeRef>,
pub visibility: RawVisibility,
pub rustc_allow_incoherent_impl: bool,
pub has_body: bool,
}
Fields§
§name: Option<Name>
None
for const _: () = ();
type_ref: Interned<TypeRef>
§visibility: RawVisibility
§rustc_allow_incoherent_impl: bool
§has_body: bool
Trait Implementations§
source§impl PartialEq for ConstData
impl PartialEq for ConstData
impl Eq for ConstData
impl StructuralPartialEq for ConstData
Auto Trait Implementations§
impl Freeze for ConstData
impl RefUnwindSafe for ConstData
impl Send for ConstData
impl Sync for ConstData
impl Unpin for ConstData
impl UnwindSafe for ConstData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.