pub enum WorkspaceFileContent {
Utf8 {
text: String,
byte_len: u32,
},
NonUtf8 {
byte_len: u32,
},
TooLarge {
limit_bytes: u32,
},
}Variants§
Trait Implementations§
Source§impl Clone for WorkspaceFileContent
impl Clone for WorkspaceFileContent
Source§impl Debug for WorkspaceFileContent
impl Debug for WorkspaceFileContent
Source§impl<'de> Deserialize<'de> for WorkspaceFileContent
impl<'de> Deserialize<'de> for WorkspaceFileContent
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorkspaceFileContent
Source§impl PartialEq for WorkspaceFileContent
impl PartialEq for WorkspaceFileContent
Source§impl Serialize for WorkspaceFileContent
impl Serialize for WorkspaceFileContent
impl StructuralPartialEq for WorkspaceFileContent
Auto Trait Implementations§
impl Freeze for WorkspaceFileContent
impl RefUnwindSafe for WorkspaceFileContent
impl Send for WorkspaceFileContent
impl Sync for WorkspaceFileContent
impl Unpin for WorkspaceFileContent
impl UnsafeUnpin for WorkspaceFileContent
impl UnwindSafe for WorkspaceFileContent
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