Enum hdk::prelude::link::LinkTypeRange
[−]pub enum LinkTypeRange {
Empty,
Full,
Inclusive(RangeInclusive<LinkType>),
}
Expand description
A range of LinkType
for quering links.
Variants
Empty
Filter out all link types. This is only useful for combining with other ranges.
Full
Return links of any type.
Inclusive(RangeInclusive<LinkType>)
Return links that are within the given range.
Implementations
impl LinkTypeRange
impl LinkTypeRange
Trait Implementations
impl Clone for LinkTypeRange
impl Clone for LinkTypeRange
fn clone(&self) -> LinkTypeRange
fn clone(&self) -> LinkTypeRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LinkTypeRange
impl Debug for LinkTypeRange
impl<'de> Deserialize<'de> for LinkTypeRange
impl<'de> Deserialize<'de> for LinkTypeRange
fn deserialize<__D>(
__deserializer: __D
) -> Result<LinkTypeRange, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LinkTypeRange, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<LinkType> for LinkTypeRange
impl From<LinkType> for LinkTypeRange
fn from(t: LinkType) -> LinkTypeRange
fn from(t: LinkType) -> LinkTypeRange
Converts to this type from the input type.
impl From<LinkTypeRange> for LinkTypeRanges
impl From<LinkTypeRange> for LinkTypeRanges
fn from(r: LinkTypeRange) -> LinkTypeRanges
fn from(r: LinkTypeRange) -> LinkTypeRanges
Converts to this type from the input type.
impl From<Range<LinkType>> for LinkTypeRange
impl From<Range<LinkType>> for LinkTypeRange
fn from(r: Range<LinkType>) -> LinkTypeRange
fn from(r: Range<LinkType>) -> LinkTypeRange
Converts to this type from the input type.
impl From<RangeFrom<LinkType>> for LinkTypeRange
impl From<RangeFrom<LinkType>> for LinkTypeRange
fn from(r: RangeFrom<LinkType>) -> LinkTypeRange
fn from(r: RangeFrom<LinkType>) -> LinkTypeRange
Converts to this type from the input type.
impl From<RangeFull> for LinkTypeRange
impl From<RangeFull> for LinkTypeRange
fn from(RangeFull) -> LinkTypeRange
fn from(RangeFull) -> LinkTypeRange
Converts to this type from the input type.
impl From<RangeInclusive<LinkType>> for LinkTypeRange
impl From<RangeInclusive<LinkType>> for LinkTypeRange
fn from(r: RangeInclusive<LinkType>) -> LinkTypeRange
fn from(r: RangeInclusive<LinkType>) -> LinkTypeRange
Converts to this type from the input type.
impl From<RangeTo<LinkType>> for LinkTypeRange
impl From<RangeTo<LinkType>> for LinkTypeRange
fn from(r: RangeTo<LinkType>) -> LinkTypeRange
fn from(r: RangeTo<LinkType>) -> LinkTypeRange
Converts to this type from the input type.
impl From<RangeToInclusive<LinkType>> for LinkTypeRange
impl From<RangeToInclusive<LinkType>> for LinkTypeRange
fn from(r: RangeToInclusive<LinkType>) -> LinkTypeRange
fn from(r: RangeToInclusive<LinkType>) -> LinkTypeRange
Converts to this type from the input type.
impl Hash for LinkTypeRange
impl Hash for LinkTypeRange
impl PartialEq<LinkTypeRange> for LinkTypeRange
impl PartialEq<LinkTypeRange> for LinkTypeRange
fn eq(&self, other: &LinkTypeRange) -> bool
fn eq(&self, other: &LinkTypeRange) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &LinkTypeRange) -> bool
fn ne(&self, other: &LinkTypeRange) -> bool
This method tests for !=
.
impl Serialize for LinkTypeRange
impl Serialize for LinkTypeRange
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 Eq for LinkTypeRange
impl StructuralEq for LinkTypeRange
impl StructuralPartialEq for LinkTypeRange
Auto Trait Implementations
impl RefUnwindSafe for LinkTypeRange
impl Send for LinkTypeRange
impl Sync for LinkTypeRange
impl Unpin for LinkTypeRange
impl UnwindSafe for LinkTypeRange
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more