#[repr(C, u8)]pub enum OptionContentGroup {
None,
Some(ContentGroup),
}Variants§
None
Some(ContentGroup)
Implementations§
Source§impl OptionContentGroup
impl OptionContentGroup
pub fn into_option(&self) -> Option<ContentGroup>
Source§impl OptionContentGroup
impl OptionContentGroup
pub fn as_option(&self) -> Option<&ContentGroup>
pub fn replace(&mut self, value: ContentGroup) -> OptionContentGroup
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ContentGroup>
pub fn as_mut(&mut self) -> Option<&mut ContentGroup>
pub fn map<U, F: FnOnce(ContentGroup) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionContentGroup
impl Clone for OptionContentGroup
Source§fn clone(&self) -> OptionContentGroup
fn clone(&self) -> OptionContentGroup
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 OptionContentGroup
impl Debug for OptionContentGroup
Source§impl Default for OptionContentGroup
impl Default for OptionContentGroup
Source§fn default() -> OptionContentGroup
fn default() -> OptionContentGroup
Returns the “default value” for a type. Read more
Source§impl From<Option<ContentGroup>> for OptionContentGroup
impl From<Option<ContentGroup>> for OptionContentGroup
Source§fn from(o: Option<ContentGroup>) -> OptionContentGroup
fn from(o: Option<ContentGroup>) -> OptionContentGroup
Converts to this type from the input type.
Source§impl From<OptionContentGroup> for Option<ContentGroup>
impl From<OptionContentGroup> for Option<ContentGroup>
Source§fn from(o: OptionContentGroup) -> Option<ContentGroup>
fn from(o: OptionContentGroup) -> Option<ContentGroup>
Converts to this type from the input type.
Source§impl PartialEq for OptionContentGroup
impl PartialEq for OptionContentGroup
Source§impl PartialOrd for OptionContentGroup
impl PartialOrd for OptionContentGroup
impl StructuralPartialEq for OptionContentGroup
Auto Trait Implementations§
impl Freeze for OptionContentGroup
impl RefUnwindSafe for OptionContentGroup
impl Send for OptionContentGroup
impl Sync for OptionContentGroup
impl Unpin for OptionContentGroup
impl UnsafeUnpin for OptionContentGroup
impl UnwindSafe for OptionContentGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more