pub struct ParamSlot {
pub name: String,
pub rest: bool,
pub has_default: bool,
}Expand description
One parameter slot. name is the simple bound name; a destructuring pattern
is lowered to a synthetic .arg{i} name plus body prologue code.
Fields§
§name: String§rest: boolTrue for the ...rest collector.
has_default: boolTrue if this slot has a default expression (applied in the body prologue).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamSlot
impl RefUnwindSafe for ParamSlot
impl Send for ParamSlot
impl Sync for ParamSlot
impl Unpin for ParamSlot
impl UnsafeUnpin for ParamSlot
impl UnwindSafe for ParamSlot
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