Struct edlang_ast::StructInitExpr
source · pub struct StructInitExpr {
pub name: Type,
pub fields: BTreeMap<Ident, StructInitField>,
pub span: Span,
}
Fields§
§name: Type
§fields: BTreeMap<Ident, StructInitField>
§span: Span
Trait Implementations§
source§impl Clone for StructInitExpr
impl Clone for StructInitExpr
source§fn clone(&self) -> StructInitExpr
fn clone(&self) -> StructInitExpr
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 StructInitExpr
impl Debug for StructInitExpr
source§impl Hash for StructInitExpr
impl Hash for StructInitExpr
source§impl Ord for StructInitExpr
impl Ord for StructInitExpr
source§fn cmp(&self, other: &StructInitExpr) -> Ordering
fn cmp(&self, other: &StructInitExpr) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StructInitExpr
impl PartialEq for StructInitExpr
source§fn eq(&self, other: &StructInitExpr) -> bool
fn eq(&self, other: &StructInitExpr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StructInitExpr
impl PartialOrd for StructInitExpr
source§fn partial_cmp(&self, other: &StructInitExpr) -> Option<Ordering>
fn partial_cmp(&self, other: &StructInitExpr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for StructInitExpr
impl StructuralPartialEq for StructInitExpr
Auto Trait Implementations§
impl Freeze for StructInitExpr
impl RefUnwindSafe for StructInitExpr
impl Send for StructInitExpr
impl Sync for StructInitExpr
impl Unpin for StructInitExpr
impl UnwindSafe for StructInitExpr
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