This reference describes unreleased code on main; no release documents it yet.

rlmesh::adapters::Tolerant

enumPreviewuse rlmesh::adapters::Tolerant;[source]

A known vocabulary value or a newer peer's spelling, retained verbatim.

enum Tolerant<E: Vocabulary>

Known

variant[source]
Known(E)

The Known alternative.

Other

variant[source]
Other(String)

The Other alternative.

parse

associated function[source]
fn parse(text: &str) -> Self

Parse an exact vocabulary spelling.

as_str

method[source]
fn as_str(&self) -> &str

The exact vocabulary spelling.

known

method[source]
fn known(&self) -> Option<&E>

The recognized value, when this carrier holds one.

Trait implementations

  • impl<E: $crate::clone::Clone + Vocabulary> Clone for Tolerant<E>
  • impl<E: $crate::fmt::Debug + Vocabulary> Debug for Tolerant<E>
  • impl<E: Vocabulary> From<E> for Tolerant<E>
  • impl<E: Vocabulary> PartialEq for Tolerant<E>
  • impl<E: Vocabulary> Eq for Tolerant<E>
  • impl<E: Vocabulary> Hash for Tolerant<E>
  • impl<E: Vocabulary> Display for Tolerant<E>
  • impl<E: Vocabulary> Serialize for Tolerant<E>
  • impl<'de, E: Vocabulary> Deserialize<'de> for Tolerant<E>