Struct hir_def::data::adt::StructData
source · pub struct StructData {
pub name: Name,
pub variant_data: Arc<VariantData>,
pub repr: Option<ReprOptions>,
pub visibility: RawVisibility,
pub flags: StructFlags,
}
Expand description
Note that we use StructData
for unions as well!
Fields§
§name: Name
§variant_data: Arc<VariantData>
§repr: Option<ReprOptions>
§visibility: RawVisibility
§flags: StructFlags
Trait Implementations§
source§impl Clone for StructData
impl Clone for StructData
source§fn clone(&self) -> StructData
fn clone(&self) -> StructData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StructData
impl Debug for StructData
source§impl PartialEq for StructData
impl PartialEq for StructData
source§fn eq(&self, other: &StructData) -> bool
fn eq(&self, other: &StructData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StructData
impl StructuralPartialEq for StructData
Auto Trait Implementations§
impl Freeze for StructData
impl RefUnwindSafe for StructData
impl Send for StructData
impl Sync for StructData
impl Unpin for StructData
impl UnwindSafe for StructData
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.