Enum json_ld_syntax::context::definition::Version
source · pub enum Version {
V1_1,
}
Expand description
Version number.
The only allowed value is a number with the value 1.1
.
Variants§
V1_1
Implementations§
source§impl Version
impl Version
pub fn into_bytes(self) -> &'static [u8] ⓘ
pub fn into_str(self) -> &'static str
pub fn into_json_number(self) -> &'static Number
pub fn into_json_number_buf(self) -> NumberBuf
Trait Implementations§
source§impl<M> IntoJsonMeta<M> for Version
impl<M> IntoJsonMeta<M> for Version
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
source§impl Ord for Version
impl Ord for Version
source§impl PartialEq<Version> for Version
impl PartialEq<Version> for Version
source§impl PartialOrd<Version> for Version
impl PartialOrd<Version> for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PrecomputeSize for Version
impl PrecomputeSize for Version
source§impl Print for Version
impl Print for Version
fn fmt_with( &self, f: &mut Formatter<'_>, _options: &Options, _indent: usize ) -> Result
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 StrippedPartialEq<Version> for Version
impl StrippedPartialEq<Version> for Version
fn stripped_eq(&self, other: &Version) -> bool
source§impl<M> TryFromJson<M> for Version
impl<M> TryFromJson<M> for Version
type Error = InvalidContext
fn try_from_json( Meta: Meta<Value<M>, M> ) -> Result<Meta<Self, M>, Meta<InvalidContext, M>>
impl Copy for Version
impl Eq for Version
Auto Trait Implementations§
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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
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.