pub struct WritingTally {
pub unchanged: usize,
pub edited: usize,
}Expand description
How the drafting has been going, counted over released items.
Deliberately counts and never judges — the threshold for “well enough”
belongs to whoever acts on it, the same division runlog keeps.
Fields§
§unchanged: usize§edited: usizeImplementations§
Source§impl WritingTally
impl WritingTally
pub fn of<'a>(items: impl IntoIterator<Item = &'a OutboxItem>) -> WritingTally
pub fn sent(&self) -> usize
Sourcepub fn unchanged_rate(&self) -> Option<f64>
pub fn unchanged_rate(&self) -> Option<f64>
The share of sent drafts that went out as written.
None over an empty denominator, never zero. “Nothing was edited” and
“nothing has been sent” are opposite findings, and rendering the second
as 0% would report an outbox nobody has used as one whose every draft
was rewritten — the null-run bug, in the one measure here that is
supposed to say something went well.
Trait Implementations§
Source§impl Clone for WritingTally
impl Clone for WritingTally
Source§fn clone(&self) -> WritingTally
fn clone(&self) -> WritingTally
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 moreimpl Copy for WritingTally
Source§impl Debug for WritingTally
impl Debug for WritingTally
Source§impl Default for WritingTally
impl Default for WritingTally
Source§fn default() -> WritingTally
fn default() -> WritingTally
Returns the “default value” for a type. Read more
impl Eq for WritingTally
Source§impl PartialEq for WritingTally
impl PartialEq for WritingTally
impl StructuralPartialEq for WritingTally
Auto Trait Implementations§
impl Freeze for WritingTally
impl RefUnwindSafe for WritingTally
impl Send for WritingTally
impl Sync for WritingTally
impl Unpin for WritingTally
impl UnsafeUnpin for WritingTally
impl UnwindSafe for WritingTally
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