pub enum ScaleState {
Start,
Done,
TwoByte,
FourByte(u8, bool),
NByte {
left: u8,
n: u8,
},
}Expand description
A position in the shape of a canonical SCALE compact integer.
Variants§
Start
Before the first byte.
Done
A complete encoding.
TwoByte
Two-byte mode, before its nonzero second byte.
FourByte(u8, bool)
Four-byte mode, with this many bytes left, and whether the third byte was nonzero.
NByte
Big-integer mode, with this many of its n bytes left.
Trait Implementations§
Source§impl Clone for ScaleState
impl Clone for ScaleState
Source§impl Debug for ScaleState
impl Debug for ScaleState
impl Eq for ScaleState
Source§impl Hash for ScaleState
impl Hash for ScaleState
Source§impl PartialEq for ScaleState
impl PartialEq for ScaleState
impl StructuralPartialEq for ScaleState
Auto Trait Implementations§
impl Forget for ScaleState
impl Freeze for ScaleState
impl RefUnwindSafe for ScaleState
impl Send for ScaleState
impl Sync for ScaleState
impl Unpin for ScaleState
impl UnsafeUnpin for ScaleState
impl UnwindSafe for ScaleState
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