Struct html2text::SizeEstimate
source · pub struct SizeEstimate { /* private fields */ }
Expand description
Size information/estimate
Implementations§
source§impl SizeEstimate
impl SizeEstimate
sourcepub fn add(self, other: SizeEstimate) -> SizeEstimate
pub fn add(self, other: SizeEstimate) -> SizeEstimate
Combine two estimates into one (add size and take the largest min width)
sourcepub fn add_hor(self, other: SizeEstimate) -> SizeEstimate
pub fn add_hor(self, other: SizeEstimate) -> SizeEstimate
Combine two estimates into one which need to be side by side. The min widths are added.
sourcepub fn max(self, other: SizeEstimate) -> SizeEstimate
pub fn max(self, other: SizeEstimate) -> SizeEstimate
Combine two estimates into one (take max of each)
Trait Implementations§
source§impl Clone for SizeEstimate
impl Clone for SizeEstimate
source§fn clone(&self) -> SizeEstimate
fn clone(&self) -> SizeEstimate
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 SizeEstimate
impl Debug for SizeEstimate
source§impl Default for SizeEstimate
impl Default for SizeEstimate
source§fn default() -> SizeEstimate
fn default() -> SizeEstimate
Returns the “default value” for a type. Read more
impl Copy for SizeEstimate
Auto Trait Implementations§
impl Freeze for SizeEstimate
impl RefUnwindSafe for SizeEstimate
impl Send for SizeEstimate
impl Sync for SizeEstimate
impl Unpin for SizeEstimate
impl UnwindSafe for SizeEstimate
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