Struct erg_parser::ast::Params
source · [−]pub struct Params {
pub non_defaults: Vec<ParamSignature>,
pub var_args: Option<Box<ParamSignature>>,
pub defaults: Vec<ParamSignature>,
pub parens: Option<(Token, Token)>,
}
Fields
non_defaults: Vec<ParamSignature>
var_args: Option<Box<ParamSignature>>
defaults: Vec<ParamSignature>
parens: Option<(Token, Token)>
Implementations
sourceimpl Params
impl Params
pub fn new(
non_defaults: Vec<ParamSignature>,
var_args: Option<ParamSignature>,
defaults: Vec<ParamSignature>,
parens: Option<(Token, Token)>
) -> Self
pub fn deconstruct(
self
) -> (Vec<ParamSignature>, Option<Box<ParamSignature>>, Vec<ParamSignature>, Option<(Token, Token)>)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations
sourceimpl Locational for Params
impl Locational for Params
impl Eq for Params
impl StructuralEq for Params
impl StructuralPartialEq for Params
Auto Trait Implementations
impl RefUnwindSafe for Params
impl !Send for Params
impl !Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more