pub enum Source<'a> {
Docx(&'a [u8]),
Markdown(&'a str),
}Expand description
A document side of a comparison: either a .docx package or a
Markdown text. Backed onto crate::markdown::redline() from the
redline command line and from the Python / WASM bindings.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Source<'a>
impl<'a> Freeze for Source<'a>
impl<'a> Move for Source<'a>
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> Send for Source<'a>
impl<'a> Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnsafeUnpin for Source<'a>
impl<'a> UnwindSafe for Source<'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