pub struct ByteStream {
pub bytes: Vec<Byte>,
/* private fields */
}
Fields§
§bytes: Vec<Byte>
Implementations§
Source§impl ByteStream
impl ByteStream
pub fn new() -> ByteStream
pub fn emit(&mut self, byte: Byte) -> Self
pub fn emitstream(&mut self, stream: ByteStream) -> Self
pub fn stringify(&self) -> String
Trait Implementations§
Source§impl Clone for ByteStream
impl Clone for ByteStream
Source§fn clone(&self) -> ByteStream
fn clone(&self) -> ByteStream
Returns a copy 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 moreSource§impl Debug for ByteStream
impl Debug for ByteStream
Source§impl Default for ByteStream
impl Default for ByteStream
Source§fn default() -> ByteStream
fn default() -> ByteStream
Returns the “default value” for a type. Read more
Source§impl Display for ByteStream
impl Display for ByteStream
Source§impl From<&[Byte]> for ByteStream
impl From<&[Byte]> for ByteStream
Source§impl From<&[ByteStream]> for ByteStream
impl From<&[ByteStream]> for ByteStream
Source§fn from(streams: &[ByteStream]) -> Self
fn from(streams: &[ByteStream]) -> Self
Converts to this type from the input type.
Source§impl From<ByteStream> for Vec<Byte>
impl From<ByteStream> for Vec<Byte>
Source§fn from(stream: ByteStream) -> Self
fn from(stream: ByteStream) -> Self
Converts to this type from the input type.
Source§impl From<ByteStream> for Vec<u8>
impl From<ByteStream> for Vec<u8>
Source§fn from(stream: ByteStream) -> Self
fn from(stream: ByteStream) -> Self
Converts to this type from the input type.
Source§impl From<Vec<ByteStream>> for ByteStream
impl From<Vec<ByteStream>> for ByteStream
Source§fn from(streams: Vec<ByteStream>) -> Self
fn from(streams: Vec<ByteStream>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ByteStream
impl RefUnwindSafe for ByteStream
impl Send for ByteStream
impl Sync for ByteStream
impl Unpin for ByteStream
impl UnwindSafe for ByteStream
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