#[repr(C, u8)]pub enum OptionAzString {
None,
Some(AzString),
}
Variants§
Implementations§
Source§impl OptionAzString
impl OptionAzString
pub fn into_option(&self) -> Option<AzString>
Source§impl OptionAzString
impl OptionAzString
pub fn as_option(&self) -> Option<&AzString>
pub fn replace(&mut self, value: AzString) -> OptionAzString
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&AzString>
pub fn as_mut(&mut self) -> Option<&mut AzString>
pub fn map<U, F: FnOnce(AzString) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionAzString
impl Clone for OptionAzString
Source§fn clone(&self) -> OptionAzString
fn clone(&self) -> OptionAzString
Returns a duplicate of the value. Read more
1.0.0 · 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 OptionAzString
impl Debug for OptionAzString
Source§impl Default for OptionAzString
impl Default for OptionAzString
Source§fn default() -> OptionAzString
fn default() -> OptionAzString
Returns the “default value” for a type. Read more
Source§impl Hash for OptionAzString
impl Hash for OptionAzString
Source§impl Ord for OptionAzString
impl Ord for OptionAzString
Source§fn cmp(&self, other: &OptionAzString) -> Ordering
fn cmp(&self, other: &OptionAzString) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OptionAzString
impl PartialEq for OptionAzString
Source§impl PartialOrd for OptionAzString
impl PartialOrd for OptionAzString
impl Eq for OptionAzString
impl StructuralPartialEq for OptionAzString
Auto Trait Implementations§
impl Freeze for OptionAzString
impl RefUnwindSafe for OptionAzString
impl Send for OptionAzString
impl Sync for OptionAzString
impl Unpin for OptionAzString
impl UnwindSafe for OptionAzString
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