pub struct ElementSize {
pub width: Option<f32>,
pub height: Option<f32>,
}Fields§
§width: Option<f32>§height: Option<f32>None here means that this element doesn’t need any space on it’s last page. This is useful for things like collapsing gaps after a forced break. This in combination with no breaks means the element is completely hidden. This can be used to trigger collapsing of gaps even hiding certain parent containers, like titled, in turn.
Implementations§
Trait Implementations§
Source§impl Clone for ElementSize
impl Clone for ElementSize
Source§fn clone(&self) -> ElementSize
fn clone(&self) -> ElementSize
Returns a duplicate 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 ElementSize
impl Debug for ElementSize
Source§impl PartialEq for ElementSize
impl PartialEq for ElementSize
impl Copy for ElementSize
impl StructuralPartialEq for ElementSize
Auto Trait Implementations§
impl Freeze for ElementSize
impl RefUnwindSafe for ElementSize
impl Send for ElementSize
impl Sync for ElementSize
impl Unpin for ElementSize
impl UnwindSafe for ElementSize
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