pub struct ByteList {
pub bytes: Vec<u8>,
}Expand description
Erlang has a transport optimization for lists only containing u8 elements.
Since Strings in erlang are just lists with u8’s they call this “STRING_EXT”.
This type does not exist in erlang and is to be seen as a subtype of List.
See: https://erlang.org/doc/apps/erts/erl_ext_dist.html#STRING_EXT
Fields§
§bytes: Vec<u8>Trait Implementations§
impl Eq for ByteList
impl StructuralPartialEq for ByteList
Auto Trait Implementations§
impl Freeze for ByteList
impl RefUnwindSafe for ByteList
impl Send for ByteList
impl Sync for ByteList
impl Unpin for ByteList
impl UnwindSafe for ByteList
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