Struct erg_parser::ast::Params
source · [−]pub struct Params {
pub non_defaults: Vec<ParamSignature>,
pub defaults: Vec<ParamSignature>,
pub parens: Option<(Token, Token)>,
}
Fields
non_defaults: Vec<ParamSignature>
defaults: Vec<ParamSignature>
parens: Option<(Token, Token)>
Implementations
sourceimpl Params
impl Params
pub const fn new(
non_defaults: Vec<ParamSignature>,
defaults: Vec<ParamSignature>,
parens: Option<(Token, Token)>
) -> Self
pub fn deconstruct(
self
) -> (Vec<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
sourceimpl PartialEq<Params> for Params
impl PartialEq<Params> 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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