[−][src]Enum pear::Expected
Variants
Token(Option<T>, Option<T>)
Slice(Option<I>, Option<S>)
Custom(Cow<'static, str>)
EOF(Option<T>)
Methods
impl<T, I, S> Expected<T, I, S>
[src]
impl<T, I, S> Expected<T, I, S>
pub fn map<FT, FI, FS, OT, OI, OS>(
self,
f_t: FT,
f_i: FI,
f_s: FS
) -> Expected<OT, OI, OS> where
FT: Copy + Fn(T) -> OT,
FI: Fn(I) -> OI,
FS: Fn(S) -> OS,
[src]
pub fn map<FT, FI, FS, OT, OI, OS>(
self,
f_t: FT,
f_i: FI,
f_s: FS
) -> Expected<OT, OI, OS> where
FT: Copy + Fn(T) -> OT,
FI: Fn(I) -> OI,
FS: Fn(S) -> OS,
Trait Implementations
impl<T: PartialEq, I: PartialEq, S: PartialEq> PartialEq<Expected<T, I, S>> for Expected<T, I, S>
[src]
impl<T: PartialEq, I: PartialEq, S: PartialEq> PartialEq<Expected<T, I, S>> for Expected<T, I, S>
fn eq(&self, other: &Expected<T, I, S>) -> bool
[src]
fn eq(&self, other: &Expected<T, I, S>) -> bool
fn ne(&self, other: &Expected<T, I, S>) -> bool
[src]
fn ne(&self, other: &Expected<T, I, S>) -> bool
impl<T: Clone, I: Clone, S: Clone> Clone for Expected<T, I, S>
[src]
impl<T: Clone, I: Clone, S: Clone> Clone for Expected<T, I, S>
fn clone(&self) -> Expected<T, I, S>
[src]
fn clone(&self) -> Expected<T, I, S>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug, I: Debug, S: Debug> Display for Expected<T, I, S>
[src]
impl<T: Debug, I: Debug, S: Debug> Display for Expected<T, I, S>
impl<T: Display + Debug, I: Display + Debug, S: Display + Debug> Display for Expected<T, I, S>
[src]
impl<T: Display + Debug, I: Display + Debug, S: Display + Debug> Display for Expected<T, I, S>
impl<T: Debug, I: Debug, S: Debug> Debug for Expected<T, I, S>
[src]
impl<T: Debug, I: Debug, S: Debug> Debug for Expected<T, I, S>
Auto Trait Implementations
impl<T, I, S> Send for Expected<T, I, S> where
I: Send,
S: Send,
T: Send,
impl<T, I, S> Send for Expected<T, I, S> where
I: Send,
S: Send,
T: Send,
impl<T, I, S> Sync for Expected<T, I, S> where
I: Sync,
S: Sync,
T: Sync,
impl<T, I, S> Sync for Expected<T, I, S> where
I: Sync,
S: Sync,
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId