Expand description
Metrics of an area of rich-content text
Fields
lines: Vec<Line<T>>Implementations
sourceimpl<T> Area<T> where
T: Clone,
impl<T> Area<T> where
T: Clone,
pub fn new() -> Area<T>
Available on crate feature
metrics only.pub fn height(&self) -> f32
Available on crate feature
metrics only.pub fn unwrap_text(&mut self)
Available on crate feature
metrics only.pub fn wrap_text(&mut self, width: f32)
Available on crate feature
metrics only.pub fn valid(&self) -> bool
Available on crate feature
metrics only.pub fn value_string(&self) -> String
Available on crate feature
metrics only.pub fn span_count(&self) -> usize
Available on crate feature
metrics only.Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Area<T> where
T: RefUnwindSafe,
impl<T> Send for Area<T> where
T: Send,
impl<T> Sync for Area<T> where
T: Sync,
impl<T> Unpin for Area<T> where
T: Unpin,
impl<T> UnwindSafe for Area<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more