Struct cedar_policy::ParseErrors
source · pub struct ParseErrors(pub Vec<ParseError, Global>);
Expand description
if you wrap a Vec<ParseError>
in this struct, it gains a Display impl
that displays each parse error on its own line, indented.
Tuple Fields§
§0: Vec<ParseError, Global>
Implementations§
source§impl ParseErrors
impl ParseErrors
sourcepub fn errors_as_strings(&self) -> Vec<String, Global>
pub fn errors_as_strings(&self) -> Vec<String, Global>
returns a Vec with stringified versions of the ParserErrors
Trait Implementations§
source§impl Debug for ParseErrors
impl Debug for ParseErrors
source§impl Display for ParseErrors
impl Display for ParseErrors
source§impl Error for ParseErrors
impl Error for ParseErrors
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for ParseErrors
impl From<ParseError> for ParseErrors
source§fn from(e: ParseError) -> ParseErrors
fn from(e: ParseError) -> ParseErrors
Converts to this type from the input type.
source§impl From<ParseErrors> for PolicyToJsonError
impl From<ParseErrors> for PolicyToJsonError
source§fn from(source: ParseErrors) -> Self
fn from(source: ParseErrors) -> Self
Converts to this type from the input type.
source§impl From<Vec<ParseError, Global>> for ParseErrors
impl From<Vec<ParseError, Global>> for ParseErrors
source§fn from(errs: Vec<ParseError, Global>) -> ParseErrors
fn from(errs: Vec<ParseError, Global>) -> ParseErrors
Converts to this type from the input type.
source§impl FromIterator<ParseError> for ParseErrors
impl FromIterator<ParseError> for ParseErrors
source§fn from_iter<T>(errs: T) -> ParseErrorswhere
T: IntoIterator<Item = ParseError>,
fn from_iter<T>(errs: T) -> ParseErrorswhere T: IntoIterator<Item = ParseError>,
Creates a value from an iterator. Read more
source§impl<'a> IntoIterator for &'a ParseErrors
impl<'a> IntoIterator for &'a ParseErrors
§type Item = &'a ParseError
type Item = &'a ParseError
The type of the elements being iterated over.
§type IntoIter = Iter<'a, ParseError>
type IntoIter = Iter<'a, ParseError>
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <&'a ParseErrors as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a ParseErrors as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
source§impl<'a> IntoIterator for &'a mut ParseErrors
impl<'a> IntoIterator for &'a mut ParseErrors
§type Item = &'a mut ParseError
type Item = &'a mut ParseError
The type of the elements being iterated over.
§type IntoIter = IterMut<'a, ParseError>
type IntoIter = IterMut<'a, ParseError>
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <&'a mut ParseErrors as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a mut ParseErrors as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
source§impl IntoIterator for ParseErrors
impl IntoIterator for ParseErrors
§type Item = ParseError
type Item = ParseError
The type of the elements being iterated over.
§type IntoIter = IntoIter<<ParseErrors as IntoIterator>::Item, Global>
type IntoIter = IntoIter<<ParseErrors as IntoIterator>::Item, Global>
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <ParseErrors as IntoIterator>::IntoIter
fn into_iter(self) -> <ParseErrors as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ParseErrors
impl Send for ParseErrors
impl Sync for ParseErrors
impl Unpin for ParseErrors
impl UnwindSafe for ParseErrors
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