Struct insta::internals::SnapshotContents
source · pub struct SnapshotContents(_);
Expand description
The contents of a Snapshot
Implementations§
source§impl SnapshotContents
impl SnapshotContents
pub fn from_inline(value: &str) -> SnapshotContents
pub fn to_inline(&self, indentation: usize) -> String
Trait Implementations§
source§impl Clone for SnapshotContents
impl Clone for SnapshotContents
source§fn clone(&self) -> SnapshotContents
fn clone(&self) -> SnapshotContents
Returns a copy of the value. Read more
1.0.0 · 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 SnapshotContents
impl Debug for SnapshotContents
source§impl From<&str> for SnapshotContents
impl From<&str> for SnapshotContents
source§fn from(value: &str) -> SnapshotContents
fn from(value: &str) -> SnapshotContents
Converts to this type from the input type.
source§impl From<SnapshotContents> for String
impl From<SnapshotContents> for String
source§fn from(value: SnapshotContents) -> String
fn from(value: SnapshotContents) -> String
Converts to this type from the input type.
source§impl From<String> for SnapshotContents
impl From<String> for SnapshotContents
source§fn from(value: String) -> SnapshotContents
fn from(value: String) -> SnapshotContents
Converts to this type from the input type.