pub struct Name {
pub data: String,
}
Fields
data: String
Implementations
sourceimpl Name
impl Name
pub fn new(data: &str) -> Result<Self, Error>
pub fn pack(
&self,
msg: Vec<u8>,
compression: &mut Option<HashMap<String, usize>>,
compression_off: usize
) -> Result<Vec<u8>, Error>
pub fn unpack(&mut self, msg: &[u8], off: usize) -> Result<usize, Error>
pub fn unpack_compressed(
&mut self,
msg: &[u8],
off: usize,
allow_compression: bool
) -> Result<usize, Error>
Trait Implementations
impl Eq for Name
impl StructuralEq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more