[−][src]Struct secded::secded_64::SecDed64
Methods
impl SecDed64
[src]
Trait Implementations
impl SecDedCodec for SecDed64
[src]
fn encodable_size(&self) -> usize
[src]
fn code_size(&self) -> usize
[src]
fn expected_slice_size(&self) -> Option<usize>
[src]
fn encode(&self, buffer: &mut [u8])
[src]
Encodes the data IN-PLACE
Arguments:
data
: The slice of data to encode. The lastsecded.code_size()
bits MUST be set to 0.
Panics:
Panics if data.len() != 8
Unless you use the no-panics
feature, encoding will also panic if the data you try to encode has some
bits set to 1 in the reserved space, or past the encodable_size() + code_size()
rightmost bits
fn decode(&self, buffer: &mut [u8]) -> Result<(), ()>
[src]
Decodes the data IN-PLACE
Arguments:
data
: The slice of data to decode.
The lastsecded.code_size()
bits will be reset to 0, a single error will be corrected implicitly.
Returns:
Ok(())
if the data slice's correctness has been checked: 0 error found or 1 found and corrected.
Err(())
if 2 errors were detected.
Panics:
Panics if data.len() != 8
Auto Trait Implementations
impl Sync for SecDed64
impl Send for SecDed64
impl Unpin for SecDed64
impl RefUnwindSafe for SecDed64
impl UnwindSafe for SecDed64
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,