pub struct Parameters(/* private fields */);Implementations§
Source§impl Parameters
impl Parameters
Sourcepub fn keyword_args(&self) -> AstChildren<KeywordArg> ⓘ
pub fn keyword_args(&self) -> AstChildren<KeywordArg> ⓘ
The keyword parameters written without a :: annotation (y = 1), in
source order.
The ;-block splits by shape rather than by role: a plain keyword is
a KEYWORD_ARG, while an annotated parameter (y::Int = 1) and the
call-site shorthand (f(; verbose)) both arrive as Args — see
Self::args.
Sourcepub fn args(&self) -> AstChildren<Arg> ⓘ
pub fn args(&self) -> AstChildren<Arg> ⓘ
The ;-block entries that are not plain KEYWORD_ARGs, in source
order: an annotated keyword parameter (y::Int = 1), the call-site
shorthand (f(; verbose)), and a keyword splat (f(; kw...)).
Trait Implementations§
Source§impl AstNode for Parameters
impl AstNode for Parameters
type Language = JuliaLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for Parameters
impl Clone for Parameters
Source§impl Debug for Parameters
impl Debug for Parameters
impl Eq for Parameters
Source§impl Hash for Parameters
impl Hash for Parameters
Source§impl PartialEq for Parameters
impl PartialEq for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations§
impl !RefUnwindSafe for Parameters
impl !Send for Parameters
impl !Sync for Parameters
impl !UnwindSafe for Parameters
impl Forget for Parameters
impl Freeze for Parameters
impl Move for Parameters
impl Unpin for Parameters
impl UnsafeUnpin for Parameters
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