pub enum ViewerContent {
Text(String),
Binary(String),
}Expand description
What the viewer found in a file, already formatted for display.
Variants§
Text(String)
Readable text, ready to render as-is.
Binary(String)
An offset/hex/ASCII dump of bytes that are not readable text.
Implementations§
Trait Implementations§
Source§impl Clone for ViewerContent
impl Clone for ViewerContent
Source§fn clone(&self) -> ViewerContent
fn clone(&self) -> ViewerContent
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 moreSource§impl Debug for ViewerContent
impl Debug for ViewerContent
impl Eq for ViewerContent
Source§impl PartialEq for ViewerContent
impl PartialEq for ViewerContent
impl StructuralPartialEq for ViewerContent
Auto Trait Implementations§
impl Freeze for ViewerContent
impl RefUnwindSafe for ViewerContent
impl Send for ViewerContent
impl Sync for ViewerContent
impl Unpin for ViewerContent
impl UnsafeUnpin for ViewerContent
impl UnwindSafe for ViewerContent
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
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.