pub struct KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector> {
pub base: GenericKindSelector,
pub sub: GenericSubKindSelector,
pub specific: ValuePattern<SpecificSelector>,
}
Fields§
§base: GenericKindSelector
§sub: GenericSubKindSelector
§specific: ValuePattern<SpecificSelector>
Implementations§
Source§impl KindSelectorDef<Pattern<BaseKind>, Pattern<Option<CamelCase>>, SpecificSelectorDef<Pattern<Domain>, Pattern<Domain>, Pattern<SkewerCase>, Pattern<SkewerCase>, VersionReq>>
impl KindSelectorDef<Pattern<BaseKind>, Pattern<Option<CamelCase>>, SpecificSelectorDef<Pattern<Domain>, Pattern<Domain>, Pattern<SkewerCase>, Pattern<SkewerCase>, VersionReq>>
pub fn new( kind: KindBaseSelector, sub_kind: SubKindSelector, specific: ValuePattern<SpecificSelector>, ) -> Self
pub fn from_base(base: BaseKind) -> Self
pub fn matches(&self, kind: &Kind) -> bool
pub fn as_point_segments(&self) -> Result<String, SpaceErr>
Trait Implementations§
Source§impl<GenericKindSelector: Clone, GenericSubKindSelector: Clone, SpecificSelector: Clone> Clone for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector: Clone, GenericSubKindSelector: Clone, SpecificSelector: Clone> Clone for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
Source§fn clone(
&self,
) -> KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
fn clone( &self, ) -> KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
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<GenericKindSelector: Debug, GenericSubKindSelector: Debug, SpecificSelector: Debug> Debug for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector: Debug, GenericSubKindSelector: Debug, SpecificSelector: Debug> Debug for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
Source§impl<'de, GenericKindSelector, GenericSubKindSelector, SpecificSelector> Deserialize<'de> for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>where
GenericKindSelector: Deserialize<'de>,
GenericSubKindSelector: Deserialize<'de>,
SpecificSelector: Deserialize<'de>,
impl<'de, GenericKindSelector, GenericSubKindSelector, SpecificSelector> Deserialize<'de> for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>where
GenericKindSelector: Deserialize<'de>,
GenericSubKindSelector: Deserialize<'de>,
SpecificSelector: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<GenericKindSelector: Hash, GenericSubKindSelector: Hash, SpecificSelector: Hash> Hash for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector: Hash, GenericSubKindSelector: Hash, SpecificSelector: Hash> Hash for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
Source§impl<GenericKindSelector: PartialEq, GenericSubKindSelector: PartialEq, SpecificSelector: PartialEq> PartialEq for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector: PartialEq, GenericSubKindSelector: PartialEq, SpecificSelector: PartialEq> PartialEq for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
Source§fn eq(
&self,
other: &KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>,
) -> bool
fn eq( &self, other: &KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> Serialize for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> Serialize for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector: Eq, GenericSubKindSelector: Eq, SpecificSelector: Eq> Eq for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> StructuralPartialEq for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
Auto Trait Implementations§
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> Freeze for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> RefUnwindSafe for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>where
GenericKindSelector: RefUnwindSafe,
GenericSubKindSelector: RefUnwindSafe,
SpecificSelector: RefUnwindSafe,
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> Send for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> Sync for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> Unpin for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>
impl<GenericKindSelector, GenericSubKindSelector, SpecificSelector> UnwindSafe for KindSelectorDef<GenericKindSelector, GenericSubKindSelector, SpecificSelector>where
GenericKindSelector: UnwindSafe,
GenericSubKindSelector: UnwindSafe,
SpecificSelector: UnwindSafe,
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<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more