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§fn clone(&self) -> WorkspaceFileContent
fn clone(&self) -> WorkspaceFileContent
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 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<WorkspaceFileContent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<WorkspaceFileContent, <D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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