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.
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