#[repr(C, u8)]pub enum OptionKeyringResult {
None,
Some(KeyringResult),
}Variants§
None
Some(KeyringResult)
Implementations§
Source§impl OptionKeyringResult
impl OptionKeyringResult
pub fn into_option(&self) -> Option<KeyringResult>
Source§impl OptionKeyringResult
impl OptionKeyringResult
pub fn as_option(&self) -> Option<&KeyringResult>
pub fn replace(&mut self, value: KeyringResult) -> OptionKeyringResult
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&KeyringResult>
pub fn as_mut(&mut self) -> Option<&mut KeyringResult>
pub fn map<U, F: FnOnce(KeyringResult) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionKeyringResult
impl Clone for OptionKeyringResult
Source§fn clone(&self) -> OptionKeyringResult
fn clone(&self) -> OptionKeyringResult
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 OptionKeyringResult
impl Debug for OptionKeyringResult
Source§impl Default for OptionKeyringResult
impl Default for OptionKeyringResult
Source§fn default() -> OptionKeyringResult
fn default() -> OptionKeyringResult
Returns the “default value” for a type. Read more
Source§impl From<Option<KeyringResult>> for OptionKeyringResult
impl From<Option<KeyringResult>> for OptionKeyringResult
Source§fn from(o: Option<KeyringResult>) -> OptionKeyringResult
fn from(o: Option<KeyringResult>) -> OptionKeyringResult
Converts to this type from the input type.
Source§impl From<OptionKeyringResult> for Option<KeyringResult>
impl From<OptionKeyringResult> for Option<KeyringResult>
Source§fn from(o: OptionKeyringResult) -> Option<KeyringResult>
fn from(o: OptionKeyringResult) -> Option<KeyringResult>
Converts to this type from the input type.
Source§impl PartialEq for OptionKeyringResult
impl PartialEq for OptionKeyringResult
Source§fn eq(&self, other: &OptionKeyringResult) -> bool
fn eq(&self, other: &OptionKeyringResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionKeyringResult
Auto Trait Implementations§
impl Freeze for OptionKeyringResult
impl RefUnwindSafe for OptionKeyringResult
impl Send for OptionKeyringResult
impl Sync for OptionKeyringResult
impl Unpin for OptionKeyringResult
impl UnsafeUnpin for OptionKeyringResult
impl UnwindSafe for OptionKeyringResult
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