pub struct FPType {
pub signed: bool,
pub bw: NonZeroUsize,
pub fp: isize,
}
Expand description
Fixed-Point Type, containing signedness, bitwidth, and fixed point
Fields§
§signed: bool
§bw: NonZeroUsize
§fp: isize
Implementations§
Trait Implementations§
source§impl Ord for FPType
impl Ord for FPType
source§impl PartialEq for FPType
impl PartialEq for FPType
source§impl PartialOrd for FPType
impl PartialOrd for FPType
1.0.0 · source§fn 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 moreimpl Copy for FPType
impl Eq for FPType
impl StructuralPartialEq for FPType
Auto Trait Implementations§
impl RefUnwindSafe for FPType
impl Send for FPType
impl Sync for FPType
impl Unpin for FPType
impl UnwindSafe for FPType
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