[−][src]Struct verify::serde::Spanned
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]
S: Serialize,
SP: Spans,
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]
S: Display + Serialize,
SP: Spans,
impl<'k, S: ?Sized, SP> Hash for Spanned<'k, S, SP> where
S: Serialize + Hash,
SP: Spans,
[src]
S: Serialize + Hash,
SP: Spans,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'k, S: ?Sized, SP> Spanned for Spanned<'k, S, SP> where
S: Serialize,
SP: Spans,
[src]
S: Serialize,
SP: Spans,
type Span = SP::Span
Span is information about the value. Read more
fn span(&self) -> Option<Self::Span>
[src]
impl<'k, S: ?Sized, SP> Validate for Spanned<'k, S, SP> where
S: Serialize,
SP: Spans,
[src]
S: Serialize,
SP: Spans,
Auto Trait Implementations
impl<'k, S: ?Sized, SP> RefUnwindSafe for Spanned<'k, S, SP> where
S: RefUnwindSafe,
SP: RefUnwindSafe,
<SP as Spans>::Span: RefUnwindSafe,
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,
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,
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,
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,
S: RefUnwindSafe,
SP: UnwindSafe,
<SP as Spans>::Span: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,