pub struct IntrinsicSizes {
pub min_content_width: f32,
pub max_content_width: f32,
pub preferred_width: Option<f32>,
pub min_content_height: f32,
pub max_content_height: f32,
pub preferred_height: Option<f32>,
}Expand description
Represents the intrinsic sizing information for an element, calculated without knowledge of the final containing block size.
Fields§
§min_content_width: f32The narrowest possible width, e.g., the width of the longest word.
max_content_width: f32The preferred width if infinite horizontal space is available.
preferred_width: Option<f32>The width specified by CSS properties, if any.
min_content_height: f32The height of the element at its min_content_width.
max_content_height: f32The height of the element at its max_content_width.
preferred_height: Option<f32>The height specified by CSS properties, if any.
Implementations§
Trait Implementations§
Source§impl Clone for IntrinsicSizes
impl Clone for IntrinsicSizes
Source§fn clone(&self) -> IntrinsicSizes
fn clone(&self) -> IntrinsicSizes
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 IntrinsicSizes
impl Debug for IntrinsicSizes
Source§impl Default for IntrinsicSizes
impl Default for IntrinsicSizes
Source§fn default() -> IntrinsicSizes
fn default() -> IntrinsicSizes
Returns the “default value” for a type. Read more
impl Copy for IntrinsicSizes
Auto Trait Implementations§
impl Freeze for IntrinsicSizes
impl RefUnwindSafe for IntrinsicSizes
impl Send for IntrinsicSizes
impl Sync for IntrinsicSizes
impl Unpin for IntrinsicSizes
impl UnsafeUnpin for IntrinsicSizes
impl UnwindSafe for IntrinsicSizes
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