pub struct RawSnippet {
pub text: String,
}Fields§
§text: StringImplementations§
Source§impl RawSnippet
impl RawSnippet
pub fn new(text: impl Into<String>) -> Self
pub fn fingerprint(&self) -> TextFingerprint
Trait Implementations§
Source§impl Clone for RawSnippet
impl Clone for RawSnippet
Source§fn clone(&self) -> RawSnippet
fn clone(&self) -> RawSnippet
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 RawSnippet
impl Debug for RawSnippet
Source§impl<'de> Deserialize<'de> for RawSnippet
impl<'de> Deserialize<'de> for RawSnippet
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
Source§impl PartialEq for RawSnippet
impl PartialEq for RawSnippet
Source§fn eq(&self, other: &RawSnippet) -> bool
fn eq(&self, other: &RawSnippet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RawSnippet
impl Serialize for RawSnippet
impl Eq for RawSnippet
impl StructuralPartialEq for RawSnippet
Auto Trait Implementations§
impl Freeze for RawSnippet
impl RefUnwindSafe for RawSnippet
impl Send for RawSnippet
impl Sync for RawSnippet
impl Unpin for RawSnippet
impl UnsafeUnpin for RawSnippet
impl UnwindSafe for RawSnippet
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