#[repr(C, u8)]pub enum OptionString {
None,
Some(AzString),
}Variants§
Implementations§
Source§impl OptionString
impl OptionString
pub fn into_option(&self) -> Option<AzString>
Source§impl OptionString
impl OptionString
pub fn as_option(&self) -> Option<&AzString>
pub fn replace(&mut self, value: AzString) -> OptionString
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 OptionString
impl Clone for OptionString
Source§fn clone(&self) -> OptionString
fn clone(&self) -> OptionString
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 OptionString
impl Debug for OptionString
Source§impl Default for OptionString
impl Default for OptionString
Source§fn default() -> OptionString
fn default() -> OptionString
Returns the “default value” for a type. Read more
Source§impl Hash for OptionString
impl Hash for OptionString
Source§impl Ord for OptionString
impl Ord for OptionString
Source§fn cmp(&self, other: &OptionString) -> Ordering
fn cmp(&self, other: &OptionString) -> 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 OptionString
impl PartialEq for OptionString
Source§impl PartialOrd for OptionString
impl PartialOrd for OptionString
impl Eq for OptionString
impl StructuralPartialEq for OptionString
Auto Trait Implementations§
impl Freeze for OptionString
impl RefUnwindSafe for OptionString
impl Send for OptionString
impl Sync for OptionString
impl Unpin for OptionString
impl UnwindSafe for OptionString
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