pub struct CanonicalRefs { /* private fields */ }Expand description
Configuration for canonical references and their Rules.
CanonicalRefs can be converted into a Payload using its From
implementation.
Implementations§
Source§impl CanonicalRefs
impl CanonicalRefs
Sourcepub fn new(
rules: Rules,
symbolic: SymbolicRefs,
) -> Result<CanonicalRefs, ValidationError>
pub fn new( rules: Rules, symbolic: SymbolicRefs, ) -> Result<CanonicalRefs, ValidationError>
Construct a new CanonicalRefs from a set of Rules and
SymbolicRefs, validating that these may be evaluated to a well
formed set of references when interpreted together.
Sourcepub fn symbolic(&self) -> &SymbolicRefs
pub fn symbolic(&self) -> &SymbolicRefs
Return the SymbolicRefs.
Trait Implementations§
Source§impl Clone for CanonicalRefs
impl Clone for CanonicalRefs
Source§fn clone(&self) -> CanonicalRefs
fn clone(&self) -> CanonicalRefs
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 moreSource§impl Debug for CanonicalRefs
impl Debug for CanonicalRefs
Source§impl Default for CanonicalRefs
impl Default for CanonicalRefs
Source§fn default() -> CanonicalRefs
fn default() -> CanonicalRefs
Returns the “default value” for a type. Read more
Source§impl PartialEq for CanonicalRefs
impl PartialEq for CanonicalRefs
Source§fn eq(&self, other: &CanonicalRefs) -> bool
fn eq(&self, other: &CanonicalRefs) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CanonicalRefs
impl Serialize for CanonicalRefs
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
Source§impl TryFrom<CanonicalRefs> for Payload
impl TryFrom<CanonicalRefs> for Payload
Source§type Error = CanonicalRefsPayloadError
type Error = CanonicalRefsPayloadError
The type returned in the event of a conversion error.
Source§fn try_from(
crefs: CanonicalRefs,
) -> Result<Payload, <Payload as TryFrom<CanonicalRefs>>::Error>
fn try_from( crefs: CanonicalRefs, ) -> Result<Payload, <Payload as TryFrom<CanonicalRefs>>::Error>
Performs the conversion.
impl Eq for CanonicalRefs
impl StructuralPartialEq for CanonicalRefs
Auto Trait Implementations§
impl Freeze for CanonicalRefs
impl RefUnwindSafe for CanonicalRefs
impl Send for CanonicalRefs
impl Sync for CanonicalRefs
impl Unpin for CanonicalRefs
impl UnsafeUnpin for CanonicalRefs
impl UnwindSafe for CanonicalRefs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more