pub struct CcsdsBlockSize(/* private fields */);Expand description
Number of samples in a CCSDS/AEC coding block.
Standard streams use 8, 16, 32, or 64 samples. Other non-zero even sizes
are representable because libaec permits them when
CcsdsFlags::NOT_ENFORCE is present.
Implementations§
Source§impl CcsdsBlockSize
impl CcsdsBlockSize
pub const EIGHT: CcsdsBlockSize
pub const SIXTEEN: CcsdsBlockSize
pub const THIRTY_TWO: CcsdsBlockSize
pub const SIXTY_FOUR: CcsdsBlockSize
Sourcepub const fn new(samples: u8) -> Option<CcsdsBlockSize>
pub const fn new(samples: u8) -> Option<CcsdsBlockSize>
Constructs a block size accepted by the AEC codec.
pub const fn samples(self) -> u8
pub const fn is_standard(self) -> bool
Trait Implementations§
Source§impl Clone for CcsdsBlockSize
impl Clone for CcsdsBlockSize
Source§fn clone(&self) -> CcsdsBlockSize
fn clone(&self) -> CcsdsBlockSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CcsdsBlockSize
Source§impl Debug for CcsdsBlockSize
impl Debug for CcsdsBlockSize
Source§impl Default for CcsdsBlockSize
impl Default for CcsdsBlockSize
Source§fn default() -> CcsdsBlockSize
fn default() -> CcsdsBlockSize
Returns the “default value” for a type. Read more
impl Eq for CcsdsBlockSize
Source§impl Hash for CcsdsBlockSize
impl Hash for CcsdsBlockSize
Source§impl PartialEq for CcsdsBlockSize
impl PartialEq for CcsdsBlockSize
impl StructuralPartialEq for CcsdsBlockSize
Auto Trait Implementations§
impl Forget for CcsdsBlockSize
impl Freeze for CcsdsBlockSize
impl RefUnwindSafe for CcsdsBlockSize
impl Send for CcsdsBlockSize
impl Sync for CcsdsBlockSize
impl Unpin for CcsdsBlockSize
impl UnsafeUnpin for CcsdsBlockSize
impl UnwindSafe for CcsdsBlockSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more