pub struct BeamBitSegment {
pub value: BeamExpr,
pub size: Option<BeamExpr>,
pub type_spec: String,
pub signed: bool,
pub endian: BeamEndian,
pub unit: Option<u8>,
}Expand description
A binary segment in a bit syntax expression.
Fields§
§value: BeamExprThe value expression
size: Option<BeamExpr>Size specification (in bits)
type_spec: StringType specifier (integer, float, binary, etc.)
signed: boolSignedness (signed / unsigned)
endian: BeamEndianEndianness (big / little / native)
unit: Option<u8>Unit size multiplier
Trait Implementations§
Source§impl Clone for BeamBitSegment
impl Clone for BeamBitSegment
Source§fn clone(&self) -> BeamBitSegment
fn clone(&self) -> BeamBitSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BeamBitSegment
impl RefUnwindSafe for BeamBitSegment
impl Send for BeamBitSegment
impl Sync for BeamBitSegment
impl Unpin for BeamBitSegment
impl UnsafeUnpin for BeamBitSegment
impl UnwindSafe for BeamBitSegment
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