pub enum AllowedMode {
Math,
Text,
Both,
}Variants§
Implementations§
Source§impl AllowedMode
impl AllowedMode
pub const fn as_str(self) -> &'static str
pub const fn union(self, other: AllowedMode) -> AllowedMode
pub const fn allows(self, mode: ContentMode) -> bool
Trait Implementations§
Source§impl Clone for AllowedMode
impl Clone for AllowedMode
Source§fn clone(&self) -> AllowedMode
fn clone(&self) -> AllowedMode
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 moreimpl Copy for AllowedMode
Source§impl Debug for AllowedMode
impl Debug for AllowedMode
Source§impl Display for AllowedMode
impl Display for AllowedMode
impl Eq for AllowedMode
Source§impl From<AllowedModeYaml> for AllowedMode
impl From<AllowedModeYaml> for AllowedMode
Source§fn from(value: AllowedModeYaml) -> AllowedMode
fn from(value: AllowedModeYaml) -> AllowedMode
Converts to this type from the input type.
Source§impl PartialEq for AllowedMode
impl PartialEq for AllowedMode
Source§fn eq(&self, other: &AllowedMode) -> bool
fn eq(&self, other: &AllowedMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AllowedMode
Auto Trait Implementations§
impl Freeze for AllowedMode
impl RefUnwindSafe for AllowedMode
impl Send for AllowedMode
impl Sync for AllowedMode
impl Unpin for AllowedMode
impl UnsafeUnpin for AllowedMode
impl UnwindSafe for AllowedMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.