#[non_exhaustive]pub enum VisualNovelLength {
VeryShort,
Short,
Average,
Long,
VeryLong,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl VisualNovelLength
impl VisualNovelLength
Sourcepub const fn is_very_short(&self) -> bool
pub const fn is_very_short(&self) -> bool
Returns true if the enum is VisualNovelLength::VeryShort otherwise false
Sourcepub const fn is_short(&self) -> bool
pub const fn is_short(&self) -> bool
Returns true if the enum is VisualNovelLength::Short otherwise false
Sourcepub const fn is_average(&self) -> bool
pub const fn is_average(&self) -> bool
Returns true if the enum is VisualNovelLength::Average otherwise false
Sourcepub const fn is_long(&self) -> bool
pub const fn is_long(&self) -> bool
Returns true if the enum is VisualNovelLength::Long otherwise false
Sourcepub const fn is_very_long(&self) -> bool
pub const fn is_very_long(&self) -> bool
Returns true if the enum is VisualNovelLength::VeryLong otherwise false
Trait Implementations§
Source§impl Clone for VisualNovelLength
impl Clone for VisualNovelLength
Source§fn clone(&self) -> VisualNovelLength
fn clone(&self) -> VisualNovelLength
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 VisualNovelLength
impl Debug for VisualNovelLength
Source§impl<'de> Deserialize<'de> for VisualNovelLength
impl<'de> Deserialize<'de> for VisualNovelLength
Source§fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VisualNovelLength
impl Display for VisualNovelLength
Source§impl Hash for VisualNovelLength
impl Hash for VisualNovelLength
Source§impl PartialEq for VisualNovelLength
impl PartialEq for VisualNovelLength
Source§impl Serialize for VisualNovelLength
impl Serialize for VisualNovelLength
impl Copy for VisualNovelLength
impl Eq for VisualNovelLength
impl StructuralPartialEq for VisualNovelLength
Auto Trait Implementations§
impl Freeze for VisualNovelLength
impl RefUnwindSafe for VisualNovelLength
impl Send for VisualNovelLength
impl Sync for VisualNovelLength
impl Unpin for VisualNovelLength
impl UnsafeUnpin for VisualNovelLength
impl UnwindSafe for VisualNovelLength
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.