pub struct MethodOption {
pub name: String,
pub value: OptionValue,
}Expand description
An option associated with a method.
Fields§
§name: StringThe name of the option.
value: OptionValueThe value of the option.
Trait Implementations§
Source§impl Clone for MethodOption
impl Clone for MethodOption
Source§fn clone(&self) -> MethodOption
fn clone(&self) -> MethodOption
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 MethodOption
impl Debug for MethodOption
Source§impl PartialEq for MethodOption
impl PartialEq for MethodOption
Source§fn eq(&self, other: &MethodOption) -> bool
fn eq(&self, other: &MethodOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MethodOption
Auto Trait Implementations§
impl Freeze for MethodOption
impl RefUnwindSafe for MethodOption
impl Send for MethodOption
impl Sync for MethodOption
impl Unpin for MethodOption
impl UnsafeUnpin for MethodOption
impl UnwindSafe for MethodOption
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