pub enum WorktreeFileContent {
Text(String),
Missing,
Binary,
TooLarge,
}Expand description
Bounded content returned when reading a worktree file for presentation.
Variants§
Text(String)
The file contains valid UTF-8 text within the preview byte limit.
Missing
The file does not exist in the current worktree.
Binary
The file is not valid UTF-8 text.
TooLarge
The file exceeds the preview byte limit.
Trait Implementations§
Source§impl Clone for WorktreeFileContent
impl Clone for WorktreeFileContent
Source§fn clone(&self) -> WorktreeFileContent
fn clone(&self) -> WorktreeFileContent
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 WorktreeFileContent
impl Debug for WorktreeFileContent
impl Eq for WorktreeFileContent
Source§impl PartialEq for WorktreeFileContent
impl PartialEq for WorktreeFileContent
impl StructuralPartialEq for WorktreeFileContent
Auto Trait Implementations§
impl Freeze for WorktreeFileContent
impl RefUnwindSafe for WorktreeFileContent
impl Send for WorktreeFileContent
impl Sync for WorktreeFileContent
impl Unpin for WorktreeFileContent
impl UnsafeUnpin for WorktreeFileContent
impl UnwindSafe for WorktreeFileContent
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