pub enum TrackChanges {
All,
Accept,
Reject,
}Expand description
What happens to the tracked changes a Markdown / .docx document
describes. Backs the convert, read, and diff CLI flags of the
same names and pandoc’s --track-changes.
Variants§
All
Keep tracked changes as tracked changes (the default).
Accept
Accept every change, as Word’s Accept All does.
Reject
Reject every change, as Word’s Reject All does.
Implementations§
Source§impl TrackChanges
impl TrackChanges
Sourcepub fn parse(value: &str) -> Option<TrackChanges>
pub fn parse(value: &str) -> Option<TrackChanges>
Parses "all", "accept" or "reject", the values of pandoc’s
--track-changes, and the "accepted" and "rejected" the CLI
takes for them too. Returns None for any other input.
Trait Implementations§
Source§impl Clone for TrackChanges
impl Clone for TrackChanges
Source§fn clone(&self) -> TrackChanges
fn clone(&self) -> TrackChanges
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 TrackChanges
Source§impl Debug for TrackChanges
impl Debug for TrackChanges
Source§impl Default for TrackChanges
impl Default for TrackChanges
Source§fn default() -> TrackChanges
fn default() -> TrackChanges
Returns the “default value” for a type. Read more
impl Eq for TrackChanges
Source§impl From<TrackChanges> for TrackChanges
impl From<TrackChanges> for TrackChanges
Source§fn from(choice: TrackChanges) -> Self
fn from(choice: TrackChanges) -> Self
Converts to this type from the input type.
Source§impl Hash for TrackChanges
impl Hash for TrackChanges
Source§impl PartialEq for TrackChanges
impl PartialEq for TrackChanges
impl StructuralPartialEq for TrackChanges
Auto Trait Implementations§
impl Forget for TrackChanges
impl Freeze for TrackChanges
impl Move for TrackChanges
impl RefUnwindSafe for TrackChanges
impl Send for TrackChanges
impl Sync for TrackChanges
impl Unpin for TrackChanges
impl UnsafeUnpin for TrackChanges
impl UnwindSafe for TrackChanges
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.