Struct diplomat_core::ast::Param
source · [−]Expand description
A parameter taken by a Method, including self.
Fields
name: StringThe name of the parameter in the original method declaration.
ty: TypeNameThe type of the parameter, which will be a named reference to
the associated struct if this is the self parameter.
Implementations
sourceimpl Param
impl Param
sourcepub fn is_writeable(&self) -> bool
pub fn is_writeable(&self) -> bool
Check if this parameter is a Writeable
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Param
impl<'de> Deserialize<'de> for Param
sourcefn 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 Eq for Param
impl StructuralEq for Param
impl StructuralPartialEq for Param
Auto Trait Implementations
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnwindSafe for Param
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more