Struct typst_syntax::ast::Destructuring
source · pub struct Destructuring<'a>(/* private fields */);
Expand description
A destructuring pattern: x
or (x, _, ..y)
.
Implementations§
source§impl<'a> Destructuring<'a>
impl<'a> Destructuring<'a>
sourcepub fn items(self) -> impl DoubleEndedIterator<Item = DestructuringItem<'a>>
pub fn items(self) -> impl DoubleEndedIterator<Item = DestructuringItem<'a>>
The items of the destructuring.
Trait Implementations§
source§impl<'a> AstNode<'a> for Destructuring<'a>
impl<'a> AstNode<'a> for Destructuring<'a>
source§fn from_untyped(node: &'a SyntaxNode) -> Option<Self>
fn from_untyped(node: &'a SyntaxNode) -> Option<Self>
Convert a node into its typed variant.
source§fn to_untyped(self) -> &'a SyntaxNode
fn to_untyped(self) -> &'a SyntaxNode
A reference to the underlying syntax node.
source§impl<'a> Clone for Destructuring<'a>
impl<'a> Clone for Destructuring<'a>
source§fn clone(&self) -> Destructuring<'a>
fn clone(&self) -> Destructuring<'a>
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<'a> Debug for Destructuring<'a>
impl<'a> Debug for Destructuring<'a>
source§impl Default for Destructuring<'_>
impl Default for Destructuring<'_>
source§impl<'a> Hash for Destructuring<'a>
impl<'a> Hash for Destructuring<'a>
source§impl<'a> PartialEq for Destructuring<'a>
impl<'a> PartialEq for Destructuring<'a>
source§fn eq(&self, other: &Destructuring<'a>) -> bool
fn eq(&self, other: &Destructuring<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for Destructuring<'a>
impl<'a> Eq for Destructuring<'a>
impl<'a> StructuralPartialEq for Destructuring<'a>
Auto Trait Implementations§
impl<'a> Freeze for Destructuring<'a>
impl<'a> RefUnwindSafe for Destructuring<'a>
impl<'a> Send for Destructuring<'a>
impl<'a> Sync for Destructuring<'a>
impl<'a> Unpin for Destructuring<'a>
impl<'a> UnwindSafe for Destructuring<'a>
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