pub struct RawString {
pub data: Vec<u8>,
}
Fields§
§data: Vec<u8>
Implementations§
source§impl RawString
impl RawString
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn shrink_to_fit(&mut self)
pub fn build(self) -> Vec<u8> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn truncate(&mut self, len: usize)
pub fn clear(&mut self)
Trait Implementations§
source§impl RawOutput<Infallible> for RawString
impl RawOutput<Infallible> for RawString
fn write_u8(&mut self, n: u8) -> Result<(), Infallible>
fn write_i64(&mut self, i: i64, size: usize) -> Result<(), Infallible>
fn write_u64(&mut self, i: u64, size: usize) -> Result<(), Infallible>
fn write_var_i64(&mut self, i: i64) -> Result<(), Infallible>
fn write_var_u64(&mut self, i: u64) -> Result<(), Infallible>
fn write_f32(&mut self, f: f32) -> Result<(), Infallible>
fn write_f64(&mut self, f: f64) -> Result<(), Infallible>
fn write_bytes(&mut self, s: &[u8]) -> Result<(), Infallible>
fn write_var_bytes(&mut self, s: &[u8]) -> Result<(), Infallible>
fn swap_range(&mut self, a: usize, b: usize) -> Result<(), Infallible>
fn pos(&self) -> usize
Auto Trait Implementations§
impl Freeze for RawString
impl RefUnwindSafe for RawString
impl Send for RawString
impl Sync for RawString
impl Unpin for RawString
impl UnwindSafe for RawString
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