pub struct BoundedCronParser;Expand description
The shipped parser: a closed macro vocabulary, not a cron grammar.
@daily, @weekly, and @monthly are the entire accepted language, and each
maps onto arithmetic this module already owns. Parsing a general five-field
expression was rejected for this work package on purpose: hand-rolling that
grammar is itself an escalation (research.md R8, C-009), and the maintained
crates all pull a second date/time stack along with them (see the review
record). A general expression is therefore refused, not guessed.
Trait Implementations§
Source§impl Clone for BoundedCronParser
impl Clone for BoundedCronParser
impl Copy for BoundedCronParser
Source§impl CronParser for BoundedCronParser
impl CronParser for BoundedCronParser
Source§fn parse(&self, expression: &str) -> Result<CronSchedule, RuleDiagnostic>
fn parse(&self, expression: &str) -> Result<CronSchedule, RuleDiagnostic>
Interpret
expression, or refuse with a field-aware diagnostic.Source§impl Debug for BoundedCronParser
impl Debug for BoundedCronParser
Auto Trait Implementations§
impl Freeze for BoundedCronParser
impl RefUnwindSafe for BoundedCronParser
impl Send for BoundedCronParser
impl Sync for BoundedCronParser
impl Unpin for BoundedCronParser
impl UnsafeUnpin for BoundedCronParser
impl UnwindSafe for BoundedCronParser
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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