Debian Codegraph @

src/error.rs

raw symbols SCIP
1 #![allow(clippy::module_name_repetitions)]
2
3 use thiserrorrust-analyzer cargo thiserror 2.0.12 crate/::Errorrust-analyzer cargo thiserror-impl 2.0.12 Error:;
4
5 pub use craterust-analyzer cargo rrule 0.14.0 crate/::{parserrust-analyzer cargo rrule 0.14.0 parser/::ParseErrorrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#, validatorrust-analyzer cargo rrule 0.14.0 validator/::ValidationErrorrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#};
6
7 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Errorrust-analyzer cargo thiserror-impl 2.0.12 Error:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:)]
8 /// The error type for the rrule crate.
9 pub enum RRuleErrorrust-analyzer cargo rrule 0.14.0 error/RRuleError# {
10 /// Parsing error
11 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("RRule parsing error: {0}")]
12 ParserErrorrust-analyzer cargo rrule 0.14.0 error/RRuleError#ParserError#(#[from] ParseErrorrust-analyzer cargo rrule 0.14.0 parser/error/ParseError#),
13 /// Validation error
14 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("RRule validation error: {0}")]
15 ValidationErrorrust-analyzer cargo rrule 0.14.0 error/RRuleError#ValidationError#(#[from] ValidationErrorrust-analyzer cargo rrule 0.14.0 validator/error/ValidationError#),
16 /// Iterator error
17 #[errorrust-analyzer cargo thiserror-impl 2.0.12 error:("RRule iterator error: {0}")]
18 IterErrorrust-analyzer cargo rrule 0.14.0 error/RRuleError#IterError#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
19 }
20
21 impl RRuleErrorrust-analyzer cargo rrule 0.14.0 error/RRuleError# {
22 /// Create a new iterator error with the given message.
23 pub fn new_iter_errrust-analyzer cargo rrule 0.14.0 error/impl#[RRuleError]new_iter_err().<S: AsRefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#<str>>(msg: S) -> Selfrust-analyzer cargo rrule 0.14.0 error/impl#[RRuleError] {
24 Selfrust-analyzer cargo rrule 0.14.0 error/impl#[RRuleError]::IterErrorrust-analyzer cargo rrule 0.14.0 error/RRuleError#IterError#(msg.as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#as_ref().().to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())
25 }
26 }