pub struct DataLength(pub i32);Expand description
See KMIP 1.2 section 2.1.11 Data Length.
Tuple Fields§
§0: i32Implementations§
Source§impl DataLength
impl DataLength
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for DataLength
impl Clone for DataLength
impl Copy for DataLength
Source§impl Debug for DataLength
impl Debug for DataLength
impl Eq for DataLength
Source§impl PartialEq for DataLength
impl PartialEq for DataLength
impl StructuralPartialEq for DataLength
Auto Trait Implementations§
impl Forget for DataLength
impl Freeze for DataLength
impl RefUnwindSafe for DataLength
impl Send for DataLength
impl Sync for DataLength
impl Unpin for DataLength
impl UnsafeUnpin for DataLength
impl UnwindSafe for DataLength
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