pub struct MethodParam {
pub type_qualifier: Option<TypeQualifier>,
pub type_annotation: Option<String>,
pub name: String,
pub default_value: Option<Expr>,
}Expand description
A parameter in a method declaration
Fields§
§type_qualifier: Option<TypeQualifier>§type_annotation: Option<String>§name: String§default_value: Option<Expr>Trait Implementations§
Source§impl Clone for MethodParam
impl Clone for MethodParam
Source§fn clone(&self) -> MethodParam
fn clone(&self) -> MethodParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MethodParam
impl Debug for MethodParam
Source§impl<'de> Deserialize<'de> for MethodParam
impl<'de> Deserialize<'de> for MethodParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MethodParam
impl PartialEq for MethodParam
Source§impl Serialize for MethodParam
impl Serialize for MethodParam
impl StructuralPartialEq for MethodParam
Auto Trait Implementations§
impl Freeze for MethodParam
impl RefUnwindSafe for MethodParam
impl Send for MethodParam
impl Sync for MethodParam
impl Unpin for MethodParam
impl UnsafeUnpin for MethodParam
impl UnwindSafe for MethodParam
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