pub struct Encoder<'a> {
pub buf: &'a mut Vec<u8>,
}
Expand description
A simple type which helps encode CodeView records into a buffer.
Fields§
§buf: &'a mut Vec<u8>
Implementations§
Source§impl<'a> Encoder<'a>
impl<'a> Encoder<'a>
pub fn new(buf: &'a mut Vec<u8>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn u8(&mut self, x: u8)
pub fn bytes(&mut self, b: &[u8])
pub fn u16(&mut self, x: u16)
pub fn u32(&mut self, x: u32)
pub fn t<T: IntoBytes + Immutable>(&mut self, x: &T)
pub fn strz(&mut self, s: &BStr)
pub fn uuid(&mut self, u: &Uuid)
Auto Trait Implementations§
impl<'a> Freeze for Encoder<'a>
impl<'a> RefUnwindSafe for Encoder<'a>
impl<'a> Send for Encoder<'a>
impl<'a> Sync for Encoder<'a>
impl<'a> Unpin for Encoder<'a>
impl<'a> !UnwindSafe for Encoder<'a>
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