Struct valkyrie_ast::NamespaceDeclaration
source · pub struct NamespaceDeclaration {
pub kind: NamespaceKind,
pub path: NamePathNode,
pub span: Range<u32>,
}Expand description
namespace std.math
Fields§
§kind: NamespaceKindThe kind of the namespace
path: NamePathNodeThe path of the namespace
span: Range<u32>The range of the node
Implementations§
source§impl NamespaceDeclaration
impl NamespaceDeclaration
sourcepub fn new<I>(names: I, range: Range<u32>) -> Selfwhere
I: IntoIterator<Item = IdentifierNode>,
pub fn new<I>(names: I, range: Range<u32>) -> Selfwhere
I: IntoIterator<Item = IdentifierNode>,
Create a new namespace declaration
sourcepub fn with_kind(self, kind: NamespaceKind) -> Self
pub fn with_kind(self, kind: NamespaceKind) -> Self
Create a new namespace declaration
Trait Implementations§
source§impl Clone for NamespaceDeclaration
impl Clone for NamespaceDeclaration
source§fn clone(&self) -> NamespaceDeclaration
fn clone(&self) -> NamespaceDeclaration
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 NamespaceDeclaration
impl Debug for NamespaceDeclaration
source§impl From<NamespaceDeclaration> for StatementKind
impl From<NamespaceDeclaration> for StatementKind
source§fn from(o: NamespaceDeclaration) -> Self
fn from(o: NamespaceDeclaration) -> Self
Converts to this type from the input type.
source§impl Hash for NamespaceDeclaration
impl Hash for NamespaceDeclaration
source§impl PartialEq for NamespaceDeclaration
impl PartialEq for NamespaceDeclaration
source§fn eq(&self, other: &NamespaceDeclaration) -> bool
fn eq(&self, other: &NamespaceDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for NamespaceDeclaration
impl StructuralPartialEq for NamespaceDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for NamespaceDeclaration
impl Send for NamespaceDeclaration
impl Sync for NamespaceDeclaration
impl Unpin for NamespaceDeclaration
impl UnwindSafe for NamespaceDeclaration
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