pub struct Writing<'a> {
pub kind: Kind,
pub name: &'a str,
pub prose: &'a str,
pub who: &'a str,
pub scope: Scope,
pub cites: Vec<Cited>,
pub course: Option<Course>,
}Expand description
A move somebody is writing, before the store gives it an id.
A struct and not seven arguments: four callers are coming — asking,
trying, finding and deciding — and each cares about a different subset, so
positionally they would be four call sites of None, Vec::new(), None
where nobody can see which blank is which.
Fields§
§kind: Kind§name: &'a strUnique within the tree. See Move::name.
prose: &'a str§who: &'a str§scope: ScopeEverything, unless this is a question, a hypothesis or a decision.
cites: Vec<Cited>Only an attempt and a finding may carry one.
course: Option<Course>Only a decision may carry one.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Writing<'a>
impl<'a> RefUnwindSafe for Writing<'a>
impl<'a> Send for Writing<'a>
impl<'a> Sync for Writing<'a>
impl<'a> Unpin for Writing<'a>
impl<'a> UnsafeUnpin for Writing<'a>
impl<'a> UnwindSafe for Writing<'a>
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