Struct platform_data::Hybrid
source · [−]pub struct Hybrid<T> { /* private fields */ }Implementations
sourceimpl<T: LinkType> Hybrid<T>
impl<T: LinkType> Hybrid<T>
pub const fn new(value: T) -> Self
pub const fn half() -> T where
T: Div<Output = T>,
pub const fn is_zero(&self) -> bool where
T: Default + PartialEq,
pub const fn is_internal(&self) -> bool where
T: Div + PartialOrd,
pub const fn is_external(&self) -> bool where
T: Div + PartialOrd + PartialEq,
pub const fn abs(&self) -> T where
T: Integral,
pub const fn as_inner(&self) -> T
Trait Implementations
sourceimpl<T: Ord> Ord for Hybrid<T>
impl<T: Ord> Ord for Hybrid<T>
sourceimpl<T: PartialOrd> PartialOrd<Hybrid<T>> for Hybrid<T>
impl<T: PartialOrd> PartialOrd<Hybrid<T>> for Hybrid<T>
sourcefn partial_cmp(&self, other: &Hybrid<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Hybrid<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<T: Copy> Copy for Hybrid<T>
impl<T: Eq> Eq for Hybrid<T>
impl<T> StructuralEq for Hybrid<T>
impl<T> StructuralPartialEq for Hybrid<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Hybrid<T> where
T: RefUnwindSafe,
impl<T> Send for Hybrid<T> where
T: Send,
impl<T> Sync for Hybrid<T> where
T: Sync,
impl<T> Unpin for Hybrid<T> where
T: Unpin,
impl<T> UnwindSafe for Hybrid<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more