pub struct ReadingTime {
pub text: String,
pub minutes: f64,
pub time: i64,
pub words: usize,
}Expand description
The result of a reading-time estimate.
Fields§
§text: StringA human-readable summary, e.g. "3 min read".
minutes: f64The estimated reading time in minutes (fractional).
time: i64The estimated reading time in milliseconds (rounded).
words: usizeThe number of words counted.
Trait Implementations§
Source§impl Clone for ReadingTime
impl Clone for ReadingTime
Source§fn clone(&self) -> ReadingTime
fn clone(&self) -> ReadingTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadingTime
impl Debug for ReadingTime
Source§impl PartialEq for ReadingTime
impl PartialEq for ReadingTime
Source§fn eq(&self, other: &ReadingTime) -> bool
fn eq(&self, other: &ReadingTime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReadingTime
Auto Trait Implementations§
impl Freeze for ReadingTime
impl RefUnwindSafe for ReadingTime
impl Send for ReadingTime
impl Sync for ReadingTime
impl Unpin for ReadingTime
impl UnsafeUnpin for ReadingTime
impl UnwindSafe for ReadingTime
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