pub enum TextBoxExtent {
Line,
Revealed,
Block,
}Expand description
Which part of each line a text’s background box spans, where tracking and pushing place its characters.
Variants§
Line
From the line’s first character to its last that is not a hanging space.
Revealed
From the first to the last revealed character that is not white space: shown, not scaled
to nothing, and not hidden by a reveal. A line with none has no box; a text without
animators draws as line.
Block
One box over the whole layout box, max_width wide and as tall as the lines.
Trait Implementations§
Source§impl Clone for TextBoxExtent
impl Clone for TextBoxExtent
impl Copy for TextBoxExtent
Source§impl Debug for TextBoxExtent
impl Debug for TextBoxExtent
Source§impl Default for TextBoxExtent
impl Default for TextBoxExtent
Source§impl<'de> Deserialize<'de> for TextBoxExtent
impl<'de> Deserialize<'de> for TextBoxExtent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextBoxExtent
Source§impl PartialEq for TextBoxExtent
impl PartialEq for TextBoxExtent
Source§impl Serialize for TextBoxExtent
impl Serialize for TextBoxExtent
impl StructuralPartialEq for TextBoxExtent
Auto Trait Implementations§
impl Forget for TextBoxExtent
impl Freeze for TextBoxExtent
impl Move for TextBoxExtent
impl RefUnwindSafe for TextBoxExtent
impl Send for TextBoxExtent
impl Sync for TextBoxExtent
impl Unpin for TextBoxExtent
impl UnsafeUnpin for TextBoxExtent
impl UnwindSafe for TextBoxExtent
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