[][src]Struct verify::serde::Spanned

pub struct Spanned<'k, S: ?Sized + Serialize, SP: Spans> { /* fields omitted */ }
This is supported on feature="serde" only.

Spanned allows validation of any value that implements Serde Serialize with a given Spans.

Implementations

impl<'k, S: ?Sized, SP> Spanned<'k, S, SP> where
    S: Serialize,
    SP: Spans
[src]

pub fn new(value: &'k S, spans: SP) -> Self[src]

This is supported on feature="serde" only.

Create a new spanned value.

Trait Implementations

impl<'k, S: ?Sized, SP> Display for Spanned<'k, S, SP> where
    S: Display + Serialize,
    SP: Spans
[src]

impl<'k, S: ?Sized, SP> Hash for Spanned<'k, S, SP> where
    S: Serialize + Hash,
    SP: Spans
[src]

impl<'k, S: ?Sized, SP> Spanned for Spanned<'k, S, SP> where
    S: Serialize,
    SP: Spans
[src]

type Span = SP::Span

Span is information about the value. Read more

impl<'k, S: ?Sized, SP> Validate for Spanned<'k, S, SP> where
    S: Serialize,
    SP: Spans
[src]

Auto Trait Implementations

impl<'k, S: ?Sized, SP> RefUnwindSafe for Spanned<'k, S, SP> where
    S: RefUnwindSafe,
    SP: RefUnwindSafe,
    <SP as Spans>::Span: RefUnwindSafe

impl<'k, S: ?Sized, SP> Send for Spanned<'k, S, SP> where
    S: Sync,
    SP: Send,
    <SP as Spans>::Span: Send

impl<'k, S: ?Sized, SP> Sync for Spanned<'k, S, SP> where
    S: Sync,
    SP: Sync,
    <SP as Spans>::Span: Sync

impl<'k, S: ?Sized, SP> Unpin for Spanned<'k, S, SP> where
    SP: Unpin,
    <SP as Spans>::Span: Unpin

impl<'k, S: ?Sized, SP> UnwindSafe for Spanned<'k, S, SP> where
    S: RefUnwindSafe,
    SP: UnwindSafe,
    <SP as Spans>::Span: UnwindSafe

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> ToString for T where
    T: Display + ?Sized
[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.