pub struct NamedElement {
pub name: Ident,
pub call: Stmt,
}Expand description
A top-level element given a name, such as window settings("Settings") { … }, which
code uses to refer to it. call is the element’s call as it reads without the name.
Fields§
§name: Ident§call: StmtTrait Implementations§
Source§impl Clone for NamedElement
impl Clone for NamedElement
Source§fn clone(&self) -> NamedElement
fn clone(&self) -> NamedElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NamedElement
impl Debug for NamedElement
Source§impl PartialEq for NamedElement
impl PartialEq for NamedElement
impl StructuralPartialEq for NamedElement
Auto Trait Implementations§
impl Freeze for NamedElement
impl RefUnwindSafe for NamedElement
impl Send for NamedElement
impl Sync for NamedElement
impl Unpin for NamedElement
impl UnsafeUnpin for NamedElement
impl UnwindSafe for NamedElement
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