Struct insta::internals::SnapshotContents
source · [−]pub struct SnapshotContents(_);
Expand description
The contents of a Snapshot
Implementations
sourceimpl SnapshotContents
impl SnapshotContents
pub fn from_inline(value: &str) -> SnapshotContents
pub fn to_inline(&self, indentation: usize) -> String
Trait Implementations
sourceimpl Clone for SnapshotContents
impl Clone for SnapshotContents
sourcefn clone(&self) -> SnapshotContents
fn clone(&self) -> SnapshotContents
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SnapshotContents
impl Debug for SnapshotContents
sourceimpl<'de> Deserialize<'de> for SnapshotContents
impl<'de> Deserialize<'de> for SnapshotContents
sourcefn 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
sourceimpl From<&'_ str> for SnapshotContents
impl From<&'_ str> for SnapshotContents
sourcefn from(value: &str) -> SnapshotContents
fn from(value: &str) -> SnapshotContents
Performs the conversion.
sourceimpl From<SnapshotContents> for String
impl From<SnapshotContents> for String
sourcefn from(value: SnapshotContents) -> String
fn from(value: SnapshotContents) -> String
Performs the conversion.
sourceimpl From<String> for SnapshotContents
impl From<String> for SnapshotContents
sourcefn from(value: String) -> SnapshotContents
fn from(value: String) -> SnapshotContents
Performs the conversion.
sourceimpl PartialEq<SnapshotContents> for SnapshotContents
impl PartialEq<SnapshotContents> for SnapshotContents
sourceimpl Serialize for SnapshotContents
impl Serialize for SnapshotContents
Auto Trait Implementations
impl RefUnwindSafe for SnapshotContents
impl Send for SnapshotContents
impl Sync for SnapshotContents
impl Unpin for SnapshotContents
impl UnwindSafe for SnapshotContents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more