pub enum TextConstraint {
MinContent,
MaxContent,
AtMost(f32),
}Expand description
How wide the text may be.
Variants§
MinContent
The narrowest it can be: CSS min-content.
MaxContent
As wide as it is with no line broken except where it says so: CSS max-content.
AtMost(f32)
Lines broken to fit this many dp.
Trait Implementations§
Source§impl Clone for TextConstraint
impl Clone for TextConstraint
impl Copy for TextConstraint
Source§impl Debug for TextConstraint
impl Debug for TextConstraint
Source§impl PartialEq for TextConstraint
impl PartialEq for TextConstraint
impl StructuralPartialEq for TextConstraint
Auto Trait Implementations§
impl Freeze for TextConstraint
impl RefUnwindSafe for TextConstraint
impl Send for TextConstraint
impl Sync for TextConstraint
impl Unpin for TextConstraint
impl UnsafeUnpin for TextConstraint
impl UnwindSafe for TextConstraint
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