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) -> CanonicalRefs
pub fn new(rules: Rules) -> CanonicalRefs
Construct a new CanonicalRefs
from a set of Rules
.
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 · 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 Extend<(Pattern, Rule<ResolvedDelegates, Threshold>)> for CanonicalRefs
impl Extend<(Pattern, Rule<ResolvedDelegates, Threshold>)> for CanonicalRefs
Source§fn extend<T>(&mut self, iter: T)
fn extend<T>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<(Pattern, Rule<ResolvedDelegates, Threshold>)> for CanonicalRefs
impl FromIterator<(Pattern, Rule<ResolvedDelegates, Threshold>)> for CanonicalRefs
Source§fn from_iter<T>(iter: T) -> CanonicalRefs
fn from_iter<T>(iter: T) -> CanonicalRefs
Creates a value from an iterator. Read more
Source§impl PartialEq for CanonicalRefs
impl PartialEq for CanonicalRefs
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 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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