Enum nachricht::Sign [−][src]
pub enum Sign {
Pos,
Neg,
}
Expand description
The sign of an integer. Not that the encoder accepts negative zero but transparently translates it to positive zero. Likewise, decoders will accept the wire format for negative zero (which can only be achieved by purposefully chosing an inefficient encoding) but return positive zero, so that testing the output doesn’t need to concern itself with another special case.
Variants
Pos
Neg
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sign
impl UnwindSafe for Sign
Blanket Implementations
Mutably borrows from an owned value. Read more