Enum scsys_core::types::direction::Direction
source · #[repr(i64)]pub enum Direction {
Forward = 0,
Backward = 1,
}
Variants§
Implementations§
source§impl Direction
impl Direction
sourcepub const fn is_forward(&self) -> bool
pub const fn is_forward(&self) -> bool
Returns true if the enum is Direction::Forward otherwise false
sourcepub const fn is_backward(&self) -> bool
pub const fn is_backward(&self) -> bool
Returns true if the enum is Direction::Backward otherwise false
Trait Implementations§
source§impl IntoEnumIterator for Direction
impl IntoEnumIterator for Direction
type Iterator = DirectionIter
fn iter() -> DirectionIter ⓘ
source§impl Ord for Direction
impl Ord for Direction
source§impl PartialOrd for Direction
impl PartialOrd for Direction
source§impl VariantNames for Direction
impl VariantNames for Direction
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)