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