pub struct FastEncoder { /* private fields */ }Expand description
FAST protocol encoder.
Implementations§
Source§impl FastEncoder
impl FastEncoder
Sourcepub fn new() -> FastEncoder
pub fn new() -> FastEncoder
Creates a new FAST encoder.
Sourcepub fn with_capacity(capacity: usize) -> FastEncoder
pub fn with_capacity(capacity: usize) -> FastEncoder
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
Source§impl Default for FastEncoder
impl Default for FastEncoder
Source§fn default() -> FastEncoder
fn default() -> FastEncoder
Returns the “default value” for a type. Read more
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