[−][src]Enum json_ld::Lenient
Wrapper for string data that may be malformed.
This is usually used with Term
, or Type
to allow for terms/types that are not IRIs or
blanck nodes, etc. but must be kept in the data structure.
Variants
Unknown(String)
Methods
impl<T> Lenient<T>
[src]
pub fn cast<U>(self) -> Lenient<U> where
U: From<T>,
[src]
U: From<T>,
pub fn try_cast<U>(self) -> Result<Lenient<U>, U::Error> where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
impl<T: TermLike> Lenient<T>
[src]
Trait Implementations
impl<T: AsJson> AsJson for Lenient<T>
[src]
impl<T: Clone> Clone for Lenient<T>
[src]
impl<T: Display> Display for Lenient<T>
[src]
impl<T: Eq> Eq for Lenient<T>
[src]
impl<T> From<T> for Lenient<T>
[src]
impl<T: Hash> Hash for Lenient<T>
[src]
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<T: PartialEq> PartialEq<Lenient<T>> for Lenient<T>
[src]
impl<T: Id + PartialEq> PartialEq<T> for Lenient<Reference<T>>
[src]
impl<T: PartialEq> PartialEq<T> for Lenient<T>
[src]
impl<V: Vocab> PartialEq<V> for Lenient<Reference<Lexicon<V>>>
[src]
impl<T> StructuralEq for Lenient<T>
[src]
impl<T> StructuralPartialEq for Lenient<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Lenient<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Lenient<T> where
T: Send,
T: Send,
impl<T> Sync for Lenient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Lenient<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Lenient<T> where
T: UnwindSafe,
T: 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<!> for 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToOwned for T
[src]
type Owned = 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>,