pub struct FnParamMetadata {
pub name: String,
pub ty: Type,
pub by_ref: bool,
pub optional: bool,
pub default: Option<LiteralMetadata>,
}
Fields§
§name: String
§ty: Type
§by_ref: bool
§optional: bool
§default: Option<LiteralMetadata>
Implementations§
Trait Implementations§
Source§impl Clone for FnParamMetadata
impl Clone for FnParamMetadata
Source§fn clone(&self) -> FnParamMetadata
fn clone(&self) -> FnParamMetadata
Returns a copy 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 moreSource§impl Debug for FnParamMetadata
impl Debug for FnParamMetadata
Source§impl Ord for FnParamMetadata
impl Ord for FnParamMetadata
Source§fn cmp(&self, other: &FnParamMetadata) -> Ordering
fn cmp(&self, other: &FnParamMetadata) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FnParamMetadata
impl PartialEq for FnParamMetadata
Source§impl PartialOrd for FnParamMetadata
impl PartialOrd for FnParamMetadata
impl Eq for FnParamMetadata
impl StructuralPartialEq for FnParamMetadata
Auto Trait Implementations§
impl Freeze for FnParamMetadata
impl RefUnwindSafe for FnParamMetadata
impl Send for FnParamMetadata
impl Sync for FnParamMetadata
impl Unpin for FnParamMetadata
impl UnwindSafe for FnParamMetadata
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