pub enum ContainerKind {
Graph,
Id,
Index,
Language,
List,
Set,
Type,
}Expand description
A single @container value.
Variants§
Graph
@graph: the values of the term are graph objects.
Id
@id: the values of the term form an id map, keyed by node identifier.
Index
@index: the values of the term form an index map, keyed by an
arbitrary index string.
Language
@language: the values of the term form a language map, keyed by
language tag.
List
@list: the values of the term are an ordered list.
Set
@set: the values of the term are always represented as an array.
Type
@type: the values of the term form a type map, keyed by node type.
Implementations§
Source§impl ContainerKind
impl ContainerKind
Sourcepub fn into_keyword(self) -> Keyword
pub fn into_keyword(self) -> Keyword
Returns the keyword naming this container, taking self by value.
Trait Implementations§
Source§impl Clone for ContainerKind
impl Clone for ContainerKind
Source§fn clone(&self) -> ContainerKind
fn clone(&self) -> ContainerKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContainerKind
Source§impl Debug for ContainerKind
impl Debug for ContainerKind
Source§impl<'de> Deserialize<'de> for ContainerKind
impl<'de> Deserialize<'de> for ContainerKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContainerKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContainerKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContainerKind
Source§impl From<ContainerKind> for Container
impl From<ContainerKind> for Container
Source§fn from(c: ContainerKind) -> Self
fn from(c: ContainerKind) -> Self
Converts to this type from the input type.
Source§impl Hash for ContainerKind
impl Hash for ContainerKind
Source§impl IntoJson for ContainerKind
impl IntoJson for ContainerKind
Source§impl Ord for ContainerKind
impl Ord for ContainerKind
Source§fn cmp(&self, other: &ContainerKind) -> Ordering
fn cmp(&self, other: &ContainerKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ContainerKind
impl PartialEq for ContainerKind
Source§impl PartialOrd for ContainerKind
impl PartialOrd for ContainerKind
Source§impl PrecomputeSize for ContainerKind
impl PrecomputeSize for ContainerKind
Source§impl Print for ContainerKind
impl Print for ContainerKind
Source§fn fmt_with(
&self,
f: &mut Formatter<'_>,
_options: &Options,
_indent: usize,
) -> Result<(), Error>
fn fmt_with( &self, f: &mut Formatter<'_>, _options: &Options, _indent: usize, ) -> Result<(), Error>
Writes the value to
f with the given options, starting at the given
indentation level. Read moreSource§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 PrintWithSize for ContainerKind
impl PrintWithSize for ContainerKind
Source§impl Serialize for ContainerKind
impl Serialize for ContainerKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ContainerKind
Source§impl<'a> TryFrom<&'a str> for ContainerKind
impl<'a> TryFrom<&'a str> for ContainerKind
Source§impl TryFrom<Keyword> for ContainerKind
impl TryFrom<Keyword> for ContainerKind
Source§impl TryFromJson for ContainerKind
impl TryFromJson for ContainerKind
Source§type Error = InvalidContext
type Error = InvalidContext
Error raised when the JSON value does not describe a valid
Self.Source§fn try_from_json(value: &Value) -> Result<ContainerKind, InvalidContext>
fn try_from_json(value: &Value) -> Result<ContainerKind, InvalidContext>
Builds a value of this type from the given JSON value. Read more
Auto Trait Implementations§
impl Freeze for ContainerKind
impl RefUnwindSafe for ContainerKind
impl Send for ContainerKind
impl Sync for ContainerKind
impl Unpin for ContainerKind
impl UnsafeUnpin for ContainerKind
impl UnwindSafe for ContainerKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if
self is equivalent to key.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.