Struct datafu::Pattern [−][src]
Implementations
impl<T: PatternTypes> Pattern<T>
[src]
pub fn compile<'s, P, O>(
input: &'s str,
preds: Option<BTreeMap<P, Box<Predicate<T>>>>,
objs: Option<BTreeMap<O, T::Own>>
) -> Result<Self, PatternError<'s>> where
P: Borrow<str> + Ord,
O: Borrow<str> + Ord,
[src]
input: &'s str,
preds: Option<BTreeMap<P, Box<Predicate<T>>>>,
objs: Option<BTreeMap<O, T::Own>>
) -> Result<Self, PatternError<'s>> where
P: Borrow<str> + Ord,
O: Borrow<str> + Ord,
Compiles the input into a pattern.
pub fn attempt_match<'a, 'b>(
&'a self,
value: impl Into<RefOwn<'b, T::Ref, T::Own>>
) -> Matcher<'a, 'b, T>ⓘNotable traits for Matcher<'a, 'b, T>
impl<'a, 'b, T: PatternTypes> Iterator for Matcher<'a, 'b, T> type Item = Result<BTreeMap<&'a str, KVPair<'b, T>>, MatchError>;
[src]
&'a self,
value: impl Into<RefOwn<'b, T::Ref, T::Own>>
) -> Matcher<'a, 'b, T>ⓘ
Notable traits for Matcher<'a, 'b, T>
impl<'a, 'b, T: PatternTypes> Iterator for Matcher<'a, 'b, T> type Item = Result<BTreeMap<&'a str, KVPair<'b, T>>, MatchError>;
Auto Trait Implementations
impl<T> !RefUnwindSafe for Pattern<T>
impl<T> Send for Pattern<T> where
<T as PatternTypes>::Own: Send,
<T as PatternTypes>::Own: Send,
impl<T> Sync for Pattern<T> where
<T as PatternTypes>::Own: Sync,
<T as PatternTypes>::Own: Sync,
impl<T> Unpin for Pattern<T> where
<T as PatternTypes>::Own: Unpin,
<T as PatternTypes>::Own: Unpin,
impl<T> !UnwindSafe for Pattern<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,