[−][src]Struct rec::prelude::Rec
Constructs a regular expression.
This implements the Builder pattern for Regex
.
Methods
impl Rec
[src]
Trait Implementations
impl Element for Rec
[src]
fn to_regex(&self) -> String
[src]
fn is_atom(&self) -> bool
[src]
fn isolate(&self) -> String
[src]
fn alternate(&self, other: &dyn Element) -> Rec
[src]
fn concatenate(&self, other: &dyn Element) -> Rec
[src]
Creates a Rec
consisting of the concatenation of self
and other
.
fn is_equal(&self, other: &dyn Element) -> bool
[src]
Returns if the regular expression of self
is equal to that of other
.
fn group(&self) -> String
[src]
impl<T: Element> PartialEq<T> for Rec
[src]
fn eq(&self, other: &T) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Rec> for char
[src]
fn eq(&self, other: &Rec) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'_> PartialEq<Rec> for &'_ str
[src]
fn eq(&self, other: &Rec) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Rec> for String
[src]
fn eq(&self, other: &Rec) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'_> From<&'_ str> for Rec
[src]
fn from(other: &str) -> Self
[src]
Converts the regular expression in &str format to a Rec.
Note that this conversion does not escape metacharacters; for that functionality use &str as an Element.
impl From<String> for Rec
[src]
impl<Rhs: Element> Add<Rhs> for Rec
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Rhs) -> Self::Output
[src]
impl Add<Rec> for char
[src]
type Output = Rec
The resulting type after applying the +
operator.
fn add(self, rhs: Rec) -> Self::Output
[src]
impl<'_> Add<Rec> for &'_ str
[src]
type Output = Rec
The resulting type after applying the +
operator.
fn add(self, rhs: Rec) -> Self::Output
[src]
impl Add<Rec> for String
[src]
type Output = Rec
The resulting type after applying the +
operator.
fn add(self, rhs: Rec) -> Self::Output
[src]
impl BitOr<Rec> for Rec
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self::Output
[src]
impl<'_> BitOr<&'_ str> for Rec
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: &str) -> Self::Output
[src]
impl BitOr<Rec> for char
[src]
type Output = Rec
The resulting type after applying the |
operator.
fn bitor(self, rhs: Rec) -> Self::Output
[src]
impl<'_> BitOr<Rec> for &'_ str
[src]
type Output = Rec
The resulting type after applying the |
operator.
fn bitor(self, rhs: Rec) -> Self::Output
[src]
impl BitOr<Rec> for String
[src]
type Output = Rec
The resulting type after applying the |
operator.
fn bitor(self, rhs: Rec) -> Self::Output
[src]
impl BitOr<Rec> for Class
[src]
type Output = Rec
The resulting type after applying the |
operator.
fn bitor(self, rhs: Rec) -> Self::Output
[src]
impl BitOr<Rec> for Ch
[src]
type Output = Rec
The resulting type after applying the |
operator.
fn bitor(self, rhs: Rec) -> Self::Output
[src]
impl BitOr<Ch> for Rec
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Ch) -> Self::Output
[src]
impl Debug for Rec
[src]
Auto Trait Implementations
impl Sync for Rec
impl Send for Rec
impl Unpin for Rec
impl RefUnwindSafe for Rec
impl UnwindSafe for Rec
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,