pub struct FastEncoder { /* private fields */ }Expand description
FAST protocol encoder.
Implementations§
Source§impl FastEncoder
impl FastEncoder
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a new encoder with pre-allocated capacity.
Sourcepub fn encode_uint(&mut self, value: u64)
pub fn encode_uint(&mut self, value: u64)
Sourcepub fn encode_int(&mut self, value: i64)
pub fn encode_int(&mut self, value: i64)
Sourcepub fn encode_ascii(&mut self, value: &str)
pub fn encode_ascii(&mut self, value: &str)
Sourcepub fn encode_bytes(&mut self, value: &[u8])
pub fn encode_bytes(&mut self, value: &[u8])
Sourcepub fn encode_nullable_uint(&mut self, value: Option<u64>)
pub fn encode_nullable_uint(&mut self, value: Option<u64>)
Sourcepub fn get_global(&self, key: &str) -> Option<&DictionaryValue>
pub fn get_global(&self, key: &str) -> Option<&DictionaryValue>
Gets a value from the global dictionary.
Sourcepub fn set_global(&mut self, key: impl Into<String>, value: DictionaryValue)
pub fn set_global(&mut self, key: impl Into<String>, value: DictionaryValue)
Sets a value in the global dictionary.
Trait Implementations§
Source§impl Debug for FastEncoder
impl Debug for FastEncoder
Auto Trait Implementations§
impl Freeze for FastEncoder
impl RefUnwindSafe for FastEncoder
impl Send for FastEncoder
impl Sync for FastEncoder
impl Unpin for FastEncoder
impl UnwindSafe for FastEncoder
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