#[repr(u8)]pub enum Sign {
Pos = 0,
Neg = 1,
}
Expand description
Enumeration over possible signs.
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sign
impl<'de> Deserialize<'de> for Sign
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Indexable for Sign
impl Indexable for Sign
source§const SET_SIZE: usize = 1usize
const SET_SIZE: usize = 1usize
The number of bytes it will take to represent this type in a set. Read more
§type Iter = SignIndexableIter
type Iter = SignIndexableIter
The type of Iterator that will be returned by [
Self::iter()
]source§impl PartialEq for Sign
impl PartialEq for Sign
source§impl ReverseIndexable for Sign
impl ReverseIndexable for Sign
source§fn from_index(u: usize) -> Self
fn from_index(u: usize) -> Self
Converts from a usize to
Self
impl Copy for Sign
impl Eq for Sign
impl StructuralPartialEq for Sign
Auto Trait Implementations§
impl RefUnwindSafe for Sign
impl Send for Sign
impl Sync for Sign
impl Unpin for Sign
impl UnwindSafe for Sign
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