Struct valkyrie_ast::ExtendsStatement
source · pub struct ExtendsStatement {
pub implements: Option<ExpressionKind>,
pub body: Vec<TraitTerm>,
}Expand description
extends path::A: Debug {}
Fields§
§implements: Option<ExpressionKind>extends A: Debug { }, the trait bounds
body: Vec<TraitTerm>The additional methods
Trait Implementations§
source§impl Clone for ExtendsStatement
impl Clone for ExtendsStatement
source§fn clone(&self) -> ExtendsStatement
fn clone(&self) -> ExtendsStatement
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 ExtendsStatement
impl Debug for ExtendsStatement
source§impl From<ExtendsStatement> for StatementKind
impl From<ExtendsStatement> for StatementKind
source§fn from(o: ExtendsStatement) -> Self
fn from(o: ExtendsStatement) -> Self
Converts to this type from the input type.
source§impl Hash for ExtendsStatement
impl Hash for ExtendsStatement
source§impl PartialEq for ExtendsStatement
impl PartialEq for ExtendsStatement
source§fn eq(&self, other: &ExtendsStatement) -> bool
fn eq(&self, other: &ExtendsStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ExtendsStatement
impl StructuralPartialEq for ExtendsStatement
Auto Trait Implementations§
impl RefUnwindSafe for ExtendsStatement
impl Send for ExtendsStatement
impl Sync for ExtendsStatement
impl Unpin for ExtendsStatement
impl UnwindSafe for ExtendsStatement
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