pub struct MethodSig {
pub optional: bool,
pub generics: Vec<String>,
pub params: Vec<Param>,
pub ret: Type,
pub predicate: Option<TypePredicate>,
pub doc: Option<DocComment>,
}Fields§
§optional: boolDeclared m?(…): the member may be absent, so a call goes through ?..
generics: Vec<String>§params: Vec<Param>§ret: Type§predicate: Option<TypePredicate>Type-guard predicate (x is T); None for ordinary methods.
doc: Option<DocComment>Trait Implementations§
Source§impl<'de> Deserialize<'de> for MethodSig
impl<'de> Deserialize<'de> for MethodSig
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
impl StructuralPartialEq for MethodSig
Auto Trait Implementations§
impl Freeze for MethodSig
impl RefUnwindSafe for MethodSig
impl Send for MethodSig
impl Sync for MethodSig
impl Unpin for MethodSig
impl UnsafeUnpin for MethodSig
impl UnwindSafe for MethodSig
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