pub struct LayoutMetrics {
pub text_density: f32,
pub white_space_ratio: f32,
pub column_balance: f32,
pub reading_flow_score: f32,
pub organization_score: f32,
}Expand description
Layout metrics
Fields§
§text_density: f32Text density
white_space_ratio: f32White space ratio
column_balance: f32Column balance
reading_flow_score: f32Reading flow score
organization_score: f32Section organization score
Trait Implementations§
Source§impl Clone for LayoutMetrics
impl Clone for LayoutMetrics
Source§fn clone(&self) -> LayoutMetrics
fn clone(&self) -> LayoutMetrics
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 LayoutMetrics
impl Debug for LayoutMetrics
Source§impl<'de> Deserialize<'de> for LayoutMetrics
impl<'de> Deserialize<'de> for LayoutMetrics
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
Auto Trait Implementations§
impl Freeze for LayoutMetrics
impl RefUnwindSafe for LayoutMetrics
impl Send for LayoutMetrics
impl Sync for LayoutMetrics
impl Unpin for LayoutMetrics
impl UnwindSafe for LayoutMetrics
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