pub struct ConstructLiteral { /* private fields */ }Implementations§
Source§impl ConstructLiteral
impl ConstructLiteral
Sourcepub fn type_path(&self) -> Option<Path>
pub fn type_path(&self) -> Option<Path>
The constructed type’s name path — Map, Flags, Weighted, a
declared struct’s name, or a ::-qualified spelling of any of them.
Which of those it is is dispatch, not grammar: brink-ir’s
construct registry resolves it (docs/stdlib-spec.md §9.6).
Sourcepub fn entries(&self) -> impl Iterator<Item = ConstructEntry>
pub fn entries(&self) -> impl Iterator<Item = ConstructEntry>
The literal’s entries, in source order. Empty for TypeName { }.
Trait Implementations§
Source§impl AstNode for ConstructLiteral
impl AstNode for ConstructLiteral
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for ConstructLiteral
impl Clone for ConstructLiteral
Source§fn clone(&self) -> ConstructLiteral
fn clone(&self) -> ConstructLiteral
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 ConstructLiteral
impl Debug for ConstructLiteral
Source§impl Display for ConstructLiteral
impl Display for ConstructLiteral
impl Eq for ConstructLiteral
Source§impl Hash for ConstructLiteral
impl Hash for ConstructLiteral
Source§impl PartialEq for ConstructLiteral
impl PartialEq for ConstructLiteral
impl StructuralPartialEq for ConstructLiteral
Auto Trait Implementations§
impl !RefUnwindSafe for ConstructLiteral
impl !Send for ConstructLiteral
impl !Sync for ConstructLiteral
impl !UnwindSafe for ConstructLiteral
impl Freeze for ConstructLiteral
impl Unpin for ConstructLiteral
impl UnsafeUnpin for ConstructLiteral
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