Enum hotdrink_rs::builders::method_builder::MethodArg [−][src]
An argument passed in to a method. This should match the corresponding parameter type.
Variants
Ref(&'a T)
An immutable reference.
MutRef(&'a mut T)
A mutable reference.
Implementations
impl<'a, T> MethodArg<'a, T>
[src]
impl<'a, T> MethodArg<'a, T>
[src]pub fn try_into_ref<U>(self) -> Result<&'a U, ConversionError> where
&'a T: TryInto<&'a U>,
[src]
&'a T: TryInto<&'a U>,
Try to convert his MethorArg<'a, T>
to a &'a T
.
pub fn try_into_mut<U>(self) -> Result<&'a mut U, ConversionError> where
&'a mut T: TryInto<&'a mut U>,
[src]
&'a mut T: TryInto<&'a mut U>,
Try to convert his MethorArg<'a, T>
to a &'a mut T
.
Trait Implementations
impl<'a, T> StructuralEq for MethodArg<'a, T>
[src]
impl<'a, T> StructuralEq for MethodArg<'a, T>
[src]impl<'a, T> StructuralPartialEq for MethodArg<'a, T>
[src]
impl<'a, T> StructuralPartialEq for MethodArg<'a, T>
[src]Auto Trait Implementations
impl<'a, T> RefUnwindSafe for MethodArg<'a, T> where
T: RefUnwindSafe,
impl<'a, T> RefUnwindSafe for MethodArg<'a, T> where
T: RefUnwindSafe,
impl<'a, T> !UnwindSafe for MethodArg<'a, T>
impl<'a, T> !UnwindSafe for MethodArg<'a, T>