pub struct CapacityReport { /* private fields */ }Expand description
What a container can carry, broken down by the constraint that shaped it.
The fields are pub(crate) and mirrored by accessors: the report is a
measurement, and nothing outside this layer should be able to write one that
no cost map produced.
Implementations§
Source§impl CapacityReport
impl CapacityReport
Sourcepub fn total_pixels(&self) -> usize
pub fn total_pixels(&self) -> usize
Pixels in the container.
Sourcepub fn textured_pixels(&self) -> usize
pub fn textured_pixels(&self) -> usize
Pixels the embedder may use.
Sourcepub fn gross_capacity_bits(&self) -> usize
pub fn gross_capacity_bits(&self) -> usize
Bits allowed by the MAX_BPP ceiling, before coding overhead.
Sourcepub fn net_capacity_bits(&self) -> usize
pub fn net_capacity_bits(&self) -> usize
Bits left once Syndrome-Trellis coding has taken its share.
Sourcepub fn mac_overhead_bytes(&self) -> usize
pub fn mac_overhead_bytes(&self) -> usize
Bytes of fixed cryptographic overhead.
Sourcepub fn available_bytes(&self) -> usize
pub fn available_bytes(&self) -> usize
Bytes of payload the container admits.
Trait Implementations§
Source§impl Clone for CapacityReport
impl Clone for CapacityReport
Source§fn clone(&self) -> CapacityReport
fn clone(&self) -> CapacityReport
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 CapacityReport
Auto Trait Implementations§
impl Freeze for CapacityReport
impl RefUnwindSafe for CapacityReport
impl Send for CapacityReport
impl Sync for CapacityReport
impl Unpin for CapacityReport
impl UnsafeUnpin for CapacityReport
impl UnwindSafe for CapacityReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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