pub struct Param {
pub extension: bool,
pub params: bool,
pub pass: Option<Pass>,
pub lifetime: Option<Name>,
pub ty: Type,
pub name: Name,
pub default: Option<Expr>,
}Expand description
Player target = source.Player.
Fields§
§extension: boolthis T x, a static method’s first: it extends T (C#’s extension
method: xs.Where(…) is Enumerable.Where(xs, …)).
params: boolparams T[] rest, the last: the call’s arguments past the others
go in it (C#’s).
pass: Option<Pass>§lifetime: Option<Name>in 'a T x: the borrow’s lifetime.
ty: Type§name: Name§default: Option<Expr>Trait Implementations§
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnsafeUnpin for Param
impl UnwindSafe for Param
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