Enum rosu_pp::model::mode::ConvertStatus
source · pub enum ConvertStatus {
Noop,
Conversion,
Incompatible,
}
Expand description
The status of a conversion through IGameMode::try_convert
.
Variants§
Noop
Conversion not necessary.
Conversion
Conversion possible.
Incompatible
Conversion not possible.
Implementations§
source§impl ConvertStatus
impl ConvertStatus
sourcepub const fn success(self) -> bool
pub const fn success(self) -> bool
Whether this ConvertStatus
represents a success.
Trait Implementations§
source§impl Clone for ConvertStatus
impl Clone for ConvertStatus
source§fn clone(&self) -> ConvertStatus
fn clone(&self) -> ConvertStatus
Returns a copy 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 ConvertStatus
impl Debug for ConvertStatus
source§impl PartialEq for ConvertStatus
impl PartialEq for ConvertStatus
source§fn eq(&self, other: &ConvertStatus) -> bool
fn eq(&self, other: &ConvertStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConvertStatus
impl Eq for ConvertStatus
impl StructuralPartialEq for ConvertStatus
Auto Trait Implementations§
impl Freeze for ConvertStatus
impl RefUnwindSafe for ConvertStatus
impl Send for ConvertStatus
impl Sync for ConvertStatus
impl Unpin for ConvertStatus
impl UnwindSafe for ConvertStatus
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