pub enum Signedness {
Unsigned,
Signed,
}Expand description
Whether a fixed-width integer (or an enum discriminant) is signed.
Folded for every FingerprintTag::FixedInt, and for an enum’s discriminant, so that two
types differing only in signedness - u32 vs i32, or #[byteable(discriminant = u8)] vs
#[byteable(discriminant = i8)] - do not collide, even though they put identical bytes on
the wire and accept identical bytes back.
Variants§
Trait Implementations§
Source§impl Clone for Signedness
impl Clone for Signedness
impl Copy for Signedness
Auto Trait Implementations§
impl Forget for Signedness
impl Freeze for Signedness
impl Move for Signedness
impl RefUnwindSafe for Signedness
impl Send for Signedness
impl Sync for Signedness
impl Unpin for Signedness
impl UnsafeUnpin for Signedness
impl UnwindSafe for Signedness
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