Enum json_ld::LenientLanguageTag
source · Expand description
Language tag that may not be well-formed.
Variants§
Implementations§
source§impl<'a> LenientLanguageTag<'a>
impl<'a> LenientLanguageTag<'a>
pub fn is_well_formed(&self) -> bool
pub fn as_language_tag(&self) -> Option<LanguageTag<'a, [u8]>>
pub fn as_str(&self) -> &str
pub fn to_owned(self) -> LenientLanguageTagBuf
Trait Implementations§
source§impl<'a> Clone for LenientLanguageTag<'a>
impl<'a> Clone for LenientLanguageTag<'a>
source§fn clone(&self) -> LenientLanguageTag<'a>
fn clone(&self) -> LenientLanguageTag<'a>
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<'a> Debug for LenientLanguageTag<'a>
impl<'a> Debug for LenientLanguageTag<'a>
source§impl<'a> Display for LenientLanguageTag<'a>
impl<'a> Display for LenientLanguageTag<'a>
source§impl<'a> Hash for LenientLanguageTag<'a>
impl<'a> Hash for LenientLanguageTag<'a>
source§impl<'a> PartialEq<LenientLanguageTag<'a>> for LenientLanguageTag<'a>
impl<'a> PartialEq<LenientLanguageTag<'a>> for LenientLanguageTag<'a>
source§fn eq(&self, other: &LenientLanguageTag<'a>) -> bool
fn eq(&self, other: &LenientLanguageTag<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PrecomputeSize for LenientLanguageTag<'a>
impl<'a> PrecomputeSize for LenientLanguageTag<'a>
source§impl<'a> Print for LenientLanguageTag<'a>
impl<'a> Print for LenientLanguageTag<'a>
fn fmt_with(
&self,
f: &mut Formatter<'_>,
_options: &Options,
_indent: usize
) -> Result<(), Error>
source§fn pretty_print(&self) -> Printed<'_, Self>
fn pretty_print(&self) -> Printed<'_, Self>
Print the value with
Options::pretty
options.source§fn compact_print(&self) -> Printed<'_, Self>
fn compact_print(&self) -> Printed<'_, Self>
Print the value with
Options::compact
options.source§fn inline_print(&self) -> Printed<'_, Self>
fn inline_print(&self) -> Printed<'_, Self>
Print the value with
Options::inline
options.source§fn print_with(&self, options: Options) -> Printed<'_, Self>
fn print_with(&self, options: Options) -> Printed<'_, Self>
Print the value with the given options.
source§impl<'a> StrippedPartialEq<LenientLanguageTag<'a>> for LenientLanguageTag<'a>
impl<'a> StrippedPartialEq<LenientLanguageTag<'a>> for LenientLanguageTag<'a>
fn stripped_eq(&self, other: &LenientLanguageTag<'a>) -> bool
impl<'a> Copy for LenientLanguageTag<'a>
impl<'a> Eq for LenientLanguageTag<'a>
impl<'a> StructuralEq for LenientLanguageTag<'a>
impl<'a> StructuralPartialEq for LenientLanguageTag<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LenientLanguageTag<'a>
impl<'a> Send for LenientLanguageTag<'a>
impl<'a> Sync for LenientLanguageTag<'a>
impl<'a> Unpin for LenientLanguageTag<'a>
impl<'a> UnwindSafe for LenientLanguageTag<'a>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.