pub enum Op {
Concise,
Elide,
Generate,
}Expand description
What was done to the source material.
Variants§
Concise
Fewer words, same referents. Asserts nothing new; extractively checkable.
Elide
Removed, marked, addressed. Asserts nothing at all.
Generate
New sentences not present in the source. The only fabrication surface.
Implementations§
Source§impl Op
impl Op
Sourcepub const fn asserts(self) -> bool
pub const fn asserts(self) -> bool
Whether this operation makes a content claim about the material it replaces.
Elision is the only one that does not, which is why it is the safe default whenever grounding is uncertain.
Sourcepub const fn depth_after(self, d: u32) -> u32
pub const fn depth_after(self, d: u32) -> u32
The depth produced by applying this operation to material already at
depth d.
Concision and elision never raise generation depth; only generation does. This is the arithmetic core of the depth bound.
Trait Implementations§
impl Copy for Op
Source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
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
impl Eq for Op
Source§impl Ord for Op
impl Ord for Op
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Op
impl PartialOrd for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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