Struct valkyrie_ast::ConstructObjectNode
source · pub struct ConstructObjectNode {
pub base_classes: Option<String>,
pub bounds: Option<ExpressionKind>,
pub span: Range<u32>,
}
Expand description
object: Trait { ... }
Construct an anonymous object
Fields§
§base_classes: Option<String>
The super class of the class.
bounds: Option<ExpressionKind>
The traits that the class implements.
span: Range<u32>
The range of the node
Trait Implementations§
source§impl Clone for ConstructObjectNode
impl Clone for ConstructObjectNode
source§fn clone(&self) -> ConstructObjectNode
fn clone(&self) -> ConstructObjectNode
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 ConstructObjectNode
impl Debug for ConstructObjectNode
source§impl From<ConstructObjectNode> for ExpressionKind
impl From<ConstructObjectNode> for ExpressionKind
source§fn from(o: ConstructObjectNode) -> Self
fn from(o: ConstructObjectNode) -> Self
Converts to this type from the input type.
source§impl Hash for ConstructObjectNode
impl Hash for ConstructObjectNode
source§impl PartialEq for ConstructObjectNode
impl PartialEq for ConstructObjectNode
source§fn eq(&self, other: &ConstructObjectNode) -> bool
fn eq(&self, other: &ConstructObjectNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ValkyrieNode for ConstructObjectNode
impl ValkyrieNode for ConstructObjectNode
impl Eq for ConstructObjectNode
impl StructuralPartialEq for ConstructObjectNode
Auto Trait Implementations§
impl RefUnwindSafe for ConstructObjectNode
impl Send for ConstructObjectNode
impl Sync for ConstructObjectNode
impl Unpin for ConstructObjectNode
impl UnwindSafe for ConstructObjectNode
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