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
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, str>> for SnapshotContents
impl<'a> From<Cow<'a, str>> for SnapshotContents
sourceimpl From<SnapshotContents> for String
impl From<SnapshotContents> for String
sourcefn from(value: SnapshotContents) -> String
fn from(value: SnapshotContents) -> String
Converts to this type from the input type.
sourceimpl From<String> for SnapshotContents
impl From<String> for SnapshotContents
sourcefn from(value: String) -> SnapshotContents
fn from(value: String) -> SnapshotContents
Converts to this type from the input type.
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