Enum typst_syntax::ast::ArrayItem
source · pub enum ArrayItem<'a> {
Pos(Expr<'a>),
Spread(Spread<'a>),
}
Expand description
An item in an array.
Variants§
Trait Implementations§
source§impl<'a> AstNode<'a> for ArrayItem<'a>
impl<'a> AstNode<'a> for ArrayItem<'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.
impl<'a> Copy for ArrayItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for ArrayItem<'a>
impl<'a> RefUnwindSafe for ArrayItem<'a>
impl<'a> Send for ArrayItem<'a>
impl<'a> Sync for ArrayItem<'a>
impl<'a> Unpin for ArrayItem<'a>
impl<'a> UnwindSafe for ArrayItem<'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