pub struct ParseSuccess<'r, 't, T>where
T: 't,
'r: 't,{
pub item: T,
pub errors: Vec<ParseError>,
pub paragraph_safe: bool,
/* private fields */
}
Fields§
§item: T
§errors: Vec<ParseError>
§paragraph_safe: bool
Implementations§
Source§impl<T> ParseSuccess<'_, '_, T>
impl<T> ParseSuccess<'_, '_, T>
pub fn new(item: T, errors: Vec<ParseError>, paragraph_safe: bool) -> Self
pub fn chain( self, all_errors: &mut Vec<ParseError>, all_paragraph_safe: &mut bool, ) -> T
Source§impl<'r, 't, T> ParseSuccess<'r, 't, T>
impl<'r, 't, T> ParseSuccess<'r, 't, T>
pub fn map<F, U>(self, f: F) -> ParseSuccess<'r, 't, U>where
F: FnOnce(T) -> U,
pub fn map_ok<F, U>(self, f: F) -> ParseResult<'r, 't, U>where
F: FnOnce(T) -> U,
Source§impl<'t> ParseSuccess<'_, 't, Elements<'t>>
impl<'t> ParseSuccess<'_, 't, Elements<'t>>
pub fn check_partials(&self, parser: &Parser<'_, '_>) -> Result<(), ParseError>
Source§impl ParseSuccess<'_, '_, ()>
impl ParseSuccess<'_, '_, ()>
pub fn into_errors(self) -> Vec<ParseError>
Trait Implementations§
Source§impl<'r, 't, T> Clone for ParseSuccess<'r, 't, T>where
T: 't + Clone,
'r: 't,
impl<'r, 't, T> Clone for ParseSuccess<'r, 't, T>where
T: 't + Clone,
'r: 't,
Source§fn clone(&self) -> ParseSuccess<'r, 't, T>
fn clone(&self) -> ParseSuccess<'r, 't, T>
Returns a copy 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<'r, 't, T> Debug for ParseSuccess<'r, 't, T>where
T: 't + Debug,
'r: 't,
impl<'r, 't, T> Debug for ParseSuccess<'r, 't, T>where
T: 't + Debug,
'r: 't,
Source§impl<'de, 'r, 't, T> Deserialize<'de> for ParseSuccess<'r, 't, T>where
T: 't + Deserialize<'de>,
'r: 't,
impl<'de, 'r, 't, T> Deserialize<'de> for ParseSuccess<'r, 't, T>where
T: 't + Deserialize<'de>,
'r: 't,
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<'r, 't, T> From<ParseSuccess<'r, 't, T>> for (T, Vec<ParseError>, bool)
impl<'r, 't, T> From<ParseSuccess<'r, 't, T>> for (T, Vec<ParseError>, bool)
Source§fn from(success: ParseSuccess<'r, 't, T>) -> (T, Vec<ParseError>, bool)
fn from(success: ParseSuccess<'r, 't, T>) -> (T, Vec<ParseError>, bool)
Converts to this type from the input type.
Auto Trait Implementations§
impl<'r, 't, T> Freeze for ParseSuccess<'r, 't, T>where
T: Freeze,
impl<'r, 't, T> RefUnwindSafe for ParseSuccess<'r, 't, T>where
T: RefUnwindSafe,
impl<'r, 't, T> Send for ParseSuccess<'r, 't, T>where
T: Send,
impl<'r, 't, T> Sync for ParseSuccess<'r, 't, T>where
T: Sync,
impl<'r, 't, T> Unpin for ParseSuccess<'r, 't, T>where
T: Unpin,
impl<'r, 't, T> UnwindSafe for ParseSuccess<'r, 't, T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more