pub struct SignatureDef {
pub name: Option<InternSymbol>,
pub required: Box<[ParamDef]>,
pub default: Box<[DefaultDef]>,
pub variadic: Option<ParamDef>,
}
Fields§
§name: Option<InternSymbol>
§required: Box<[ParamDef]>
§default: Box<[DefaultDef]>
§variadic: Option<ParamDef>
Implementations§
Source§impl SignatureDef
impl SignatureDef
pub fn param_count(&self) -> usize
Trait Implementations§
Source§impl Clone for SignatureDef
impl Clone for SignatureDef
Source§fn clone(&self) -> SignatureDef
fn clone(&self) -> SignatureDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SignatureDef
impl RefUnwindSafe for SignatureDef
impl Send for SignatureDef
impl Sync for SignatureDef
impl Unpin for SignatureDef
impl UnwindSafe for SignatureDef
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