pub struct StringLength {
pub error_code: u8,
pub length: u32,
}
Fields§
§error_code: u8
§length: u32
Trait Implementations§
Source§impl Clone for StringLength
impl Clone for StringLength
Source§fn clone(&self) -> StringLength
fn clone(&self) -> StringLength
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StringLength
impl Debug for StringLength
Source§impl Default for StringLength
impl Default for StringLength
Source§fn default() -> StringLength
fn default() -> StringLength
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for StringLength
impl FromByteSlice for StringLength
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> StringLength
fn from_le_byte_slice(bytes: &[u8]) -> StringLength
Deserialize the implementing type from a byte slice.
Source§impl Hash for StringLength
impl Hash for StringLength
Source§impl PartialEq for StringLength
impl PartialEq for StringLength
impl Copy for StringLength
impl Eq for StringLength
impl StructuralPartialEq for StringLength
Auto Trait Implementations§
impl Freeze for StringLength
impl RefUnwindSafe for StringLength
impl Send for StringLength
impl Sync for StringLength
impl Unpin for StringLength
impl UnwindSafe for StringLength
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