Struct HirStructDecl
pub struct HirStructDecl {
pub name: String,
pub type_params: Vec<String>,
pub fields: Vec<NamedTypeField>,
}Expand description
Runtime struct declaration retained in HIR.
Fields§
§name: StringUser-visible item name.
type_params: Vec<String>Generic type parameters declared on the extern item.
fields: Vec<NamedTypeField>Fields declared on the struct.
Trait Implementations§
§impl Clone for HirStructDecl
impl Clone for HirStructDecl
§fn clone(&self) -> HirStructDecl
fn clone(&self) -> HirStructDecl
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 moreAuto Trait Implementations§
impl Freeze for HirStructDecl
impl RefUnwindSafe for HirStructDecl
impl Send for HirStructDecl
impl Sync for HirStructDecl
impl Unpin for HirStructDecl
impl UnwindSafe for HirStructDecl
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