pub struct Review { /* private fields */ }Expand description
The card two texts make: their sentences aligned in reading order.
Implementations§
Source§impl Review
impl Review
Sourcepub fn of(before: &str, after: &str) -> Review
pub fn of(before: &str, after: &str) -> Review
Cuts both texts into sentences and aligns them (D14, D15).
pub fn slices(&self) -> &[Slice]
pub fn into_slices(self) -> Vec<Slice>
Sourcepub fn merged(&self, verdicts: &[SliceVerdict]) -> Result<String, AxError>
pub fn merged(&self, verdicts: &[SliceVerdict]) -> Result<String, AxError>
The text a person’s verdicts make of the card: a changed sentence the verdicts do not name is rejected (D16).
§Errors
E_INVALID_ARGS naming the slice, for a place no sentence holds,
a sentence that did not change, one named twice, and an amended
deletion.
Trait Implementations§
impl Eq for Review
impl StructuralPartialEq for Review
Auto Trait Implementations§
impl Freeze for Review
impl RefUnwindSafe for Review
impl Send for Review
impl Sync for Review
impl Unpin for Review
impl UnsafeUnpin for Review
impl UnwindSafe for Review
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