pub enum AvailableSpace {
Definite(Pixels),
MinContent,
MaxContent,
}Expand description
The space available for an element to be laid out in
Variants§
Definite(Pixels)
The amount of space available is the specified number of pixels
MinContent
The amount of space available is indefinite and the node should be laid out under a min-content constraint
MaxContent
The amount of space available is indefinite and the node should be laid out under a max-content constraint
Implementations§
Trait Implementations§
Source§impl Clone for AvailableSpace
impl Clone for AvailableSpace
impl Copy for AvailableSpace
Source§impl Debug for AvailableSpace
impl Debug for AvailableSpace
Source§impl Default for AvailableSpace
impl Default for AvailableSpace
impl Eq for AvailableSpace
Source§impl From<AvailableSpace> for AvailableSpace
impl From<AvailableSpace> for AvailableSpace
Source§fn from(space: AvailableSpace) -> TaffyAvailableSpace
fn from(space: AvailableSpace) -> TaffyAvailableSpace
Converts to this type from the input type.
Source§impl From<AvailableSpace> for AvailableSpace
impl From<AvailableSpace> for AvailableSpace
Source§fn from(space: TaffyAvailableSpace) -> AvailableSpace
fn from(space: TaffyAvailableSpace) -> AvailableSpace
Converts to this type from the input type.
Source§impl From<Pixels> for AvailableSpace
impl From<Pixels> for AvailableSpace
Source§impl PartialEq for AvailableSpace
impl PartialEq for AvailableSpace
impl StructuralPartialEq for AvailableSpace
Auto Trait Implementations§
impl Freeze for AvailableSpace
impl RefUnwindSafe for AvailableSpace
impl Send for AvailableSpace
impl Sync for AvailableSpace
impl Unpin for AvailableSpace
impl UnsafeUnpin for AvailableSpace
impl UnwindSafe for AvailableSpace
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.