Struct typst_syntax::ast::Args
source · pub struct Args<'a>(/* private fields */);
Expand description
A function call’s argument list: (12pt, y)
.
Implementations§
source§impl<'a> Args<'a>
impl<'a> Args<'a>
sourcepub fn items(self) -> impl DoubleEndedIterator<Item = Arg<'a>>
pub fn items(self) -> impl DoubleEndedIterator<Item = Arg<'a>>
The positional and named arguments.
sourcepub fn trailing_comma(self) -> bool
pub fn trailing_comma(self) -> bool
Whether there is a comma at the end.
Trait Implementations§
source§impl<'a> AstNode<'a> for Args<'a>
impl<'a> AstNode<'a> for Args<'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> PartialEq for Args<'a>
impl<'a> PartialEq for Args<'a>
impl<'a> Copy for Args<'a>
impl<'a> Eq for Args<'a>
impl<'a> StructuralPartialEq for Args<'a>
Auto Trait Implementations§
impl<'a> Freeze for Args<'a>
impl<'a> RefUnwindSafe for Args<'a>
impl<'a> Send for Args<'a>
impl<'a> Sync for Args<'a>
impl<'a> Unpin for Args<'a>
impl<'a> UnwindSafe for Args<'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