Enum insta::internals::Redaction[][src]

pub enum Redaction {
    Static(Content),
    Dynamic(Box<dyn Fn(Content, ContentPath<'_>) -> Content + Sync + Send>),
}

Replaces a value with another one. Represents a redaction.

Variants

Static(Content)

Static redaction with new content.

Dynamic(Box<dyn Fn(Content, ContentPath<'_>) -> Content + Sync + Send>)

Redaction with new content.

Trait Implementations

impl<'a> From<&'a [u8]> for Redaction[src]

impl<'a> From<&'a str> for Redaction[src]

impl From<()> for Redaction[src]

impl From<String> for Redaction[src]

impl From<Vec<u8, Global>> for Redaction[src]

impl From<bool> for Redaction[src]

impl From<char> for Redaction[src]

impl From<f32> for Redaction[src]

impl From<f64> for Redaction[src]

impl From<i16> for Redaction[src]

impl From<i32> for Redaction[src]

impl From<i64> for Redaction[src]

impl From<i8> for Redaction[src]

impl From<u16> for Redaction[src]

impl From<u32> for Redaction[src]

impl From<u64> for Redaction[src]

impl From<u8> for Redaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.