rlmesh::adapters::Tolerant
A known vocabulary value or a newer peer's spelling, retained verbatim.
enum Tolerant<E: Vocabulary>Variants
Associated functions
Methods
Known
variant[source]Known(E)The Known alternative.
Other
variant[source]Other(String)The Other alternative.
parse
associated function[source]fn parse(text: &str) -> SelfParse an exact vocabulary spelling.
as_str
method[source]fn as_str(&self) -> &strThe 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>