MCPcopy Create free account

hub / github.com/cloudflare/saffron / functions

Functions204 in github.com/cloudflare/saffron

↓ 25 callersFunctionassert
(cron: &str, expected: &str)
saffron/src/describe/english.rs:427
↓ 18 callersFunctioncheck_does_contain
(cron: &str, dates: impl IntoIterator<Item = impl AsRef<str>>)
saffron/src/lib.rs:1524
↓ 12 callersMethodnormalize
Normalizes the expression, simplifying it. Normalizations: A range of equal start and end points (i.e. 1-1) is simplified into one value (1) A step o
saffron/src/parse.rs:561
↓ 11 callersFunctionassert
(cron: &str, range: R, times: &[&str])
saffron/src/lib.rs:1909
↓ 11 callersMethodfree
* Frees the underlying wasm memory associated with this object.
saffron-web/pkg/saffron.js:81
↓ 11 callersFunctionstatus
(code, text)
saffron-worker/worker/worker.js:3
↓ 9 callersMethodinto_iter
(self)
saffron/src/parse.rs:614
↓ 9 callersMethoditer
Creates an iterator of date times contained in the cron value using the given start and end range bounds. Unbounded start and end values will use the
saffron/src/lib.rs:1072
↓ 9 callersFunctiontail_ors_exprs
Consumes a set of trailing ORS expressions
saffron/src/parse.rs:720
↓ 8 callersFunctione
(value: u8)
saffron/src/parse.rs:1064
↓ 8 callersMethodis_star
(&self)
saffron/src/lib.rs:115
↓ 7 callersFunctiondisplay
(f: F)
saffron/src/describe/mod.rs:30
↓ 6 callersFunctioncheck_does_not_contain
(cron: &str, dates: impl IntoIterator<Item = impl AsRef<str>>)
saffron/src/lib.rs:1541
↓ 4 callersMethodany
(&self)
saffron/src/lib.rs:930
↓ 4 callersFunctiondays_in_month
Returns the number of days in the month, 28-31
saffron/src/lib.rs:26
↓ 4 callersMethoddescribe
Returns a formatter to display the cron expression in the provided language # Example ``` use saffron::parse::{CronExpr, English}; let cron: CronExp
saffron/src/parse.rs:670
↓ 4 callersMethoditer_from
(self, start: DateTime<Utc>)
saffron/src/lib.rs:1025
↓ 4 callersMethodone_value
(&self)
saffron/src/lib.rs:603
↓ 4 callersFunctionset_panic_hook
()
saffron-worker/src/lib.rs:14
↓ 3 callersMethodany
(&self)
saffron-web/src/lib.rs:45
↓ 3 callersFunctionapiResponse
(result, success, errors)
saffron-worker/worker/worker.js:23
↓ 3 callersFunctionbox_it
(val: T)
saffron-c/src/lib.rs:18
↓ 3 callersMethodcontains_date
(&self, d: Date<Utc>)
saffron/src/lib.rs:154
↓ 3 callersMethodcontains_month
(&self, date: Date<Utc>)
saffron/src/lib.rs:777
↓ 3 callersFunctionexpr
A parser that can parse delimited expressions given a parser for that part. This can't parse day of the month or week expressions.
saffron/src/parse.rs:744
↓ 3 callersMethodfind_next
Finds the next (current inclusive) matching date time in the future within the specified date time bound, or none if the search exceeds the bound.
saffron/src/lib.rs:1145
↓ 3 callersMethodhour
(&'a self, h: OrsExpr<Hour>)
saffron/src/describe/english.rs:90
↓ 3 callersMethodkind
(&self)
saffron/src/lib.rs:111
↓ 3 callersFunctionmap_digit1
()
saffron/src/parse.rs:786
↓ 3 callersMethodnext_from
(&self, date: JsDate)
saffron-web/src/lib.rs:54
↓ 3 callersFunctionnext_minute
(dt: DateTime<Utc>)
saffron/src/lib.rs:1454
↓ 3 callersMethodtime
(&self, hour: H, minute: M)
saffron/src/describe/english.rs:162
↓ 2 callersMethod__wrap
@private
saffron-web/pkg/saffron.js:9
↓ 2 callersMethodcontains_hour
(&self, time: NaiveTime)
saffron/src/lib.rs:459
↓ 2 callersFunctioncorsHeaders
()
saffron-worker/worker/worker.js:7
↓ 2 callersMethodfind_next_day
Gets the next matching (current inclusive) day of the month or day of the week that matches the cron expression. The returned matching day is a value
saffron/src/lib.rs:1234
↓ 2 callersMethodfind_next_day_of_month
Gets the next matching (current inclusive) day of the month that matches the cron expression.
saffron/src/lib.rs:1253
↓ 2 callersMethodfind_next_minute
Gets the next minute (current inclusive) matching the cron expression, or none if the current minute / no upcoming minute in the hour matches.
saffron/src/lib.rs:1178
↓ 2 callersMethodfind_next_time
Finds the next matching time, limited inclusive by a optional bound.
saffron/src/lib.rs:1208
↓ 2 callersMethodfind_next_weekday
Gets the next matching (current inclusive) day of the week that matches the cron expression. The returned matching day is a value 0-30.
saffron/src/lib.rs:1314
↓ 2 callersMethoditer_after
(self, start: DateTime<Utc>)
saffron/src/lib.rs:1049
↓ 2 callersMethodminute
(&self, h: OrsExpr<Minute>)
saffron/src/describe/english.rs:75
↓ 2 callersFunctionminute_floor
(dt: DateTime<Utc>)
saffron/src/lib.rs:1441
↓ 2 callersMethodmonth
(&self, h: OrsExpr<Month>)
saffron/src/describe/english.rs:113
↓ 2 callersFunctionrebox_it
(ptr: *mut T)
saffron-c/src/lib.rs:22
↓ 2 callersFunctiontime_bound_for_date
(d: Date<Utc>, end: DateTime<Utc>)
saffron/src/lib.rs:1470
↓ 1 callersFunctionassert_cfg
(cfg: English, cron: &str, expected: &str)
saffron/src/describe/english.rs:419
↓ 1 callersMethodcontains
(&self, dt: DateTime<Utc>)
saffron/src/lib.rs:100
↓ 1 callersMethodcontains
(&self, date: JsDate)
saffron-web/src/lib.rs:49
↓ 1 callersFunctiondescribe
(cron: &str)
saffron-worker/src/lib.rs:68
↓ 1 callersFunctiondow
(s: &str)
saffron/src/parse.rs:928
↓ 1 callersMethoderrors
(&self)
saffron-worker/src/lib.rs:54
↓ 1 callersMethodfind_next_date
( &self, mut start: Date<Utc>, end: Date<Utc>, )
saffron/src/lib.rs:1403
↓ 1 callersMethodfind_next_hour
Gets the next hour (current inclusive) in the cron expression, or none if the current hour / no upcoming hour in the day matches.
saffron/src/lib.rs:1195
↓ 1 callersMethodfind_next_month
Gets the start of the next matching (current inclusive) month that matches the cron expression.
saffron/src/lib.rs:1391
↓ 1 callersMethodfirst_set
(&self)
saffron/src/lib.rs:618
↓ 1 callersMethodfirst_set0
(&self)
saffron/src/lib.rs:608
↓ 1 callersMethodfmt_expr
(&self, expr: &CronExpr, f: &mut Formatter)
saffron/src/describe/mod.rs:15
↓ 1 callersFunctionhandleRequest
(request)
saffron-worker/worker/worker.js:53
↓ 1 callersMethodis_last
(&self)
saffron/src/lib.rs:589
↓ 1 callersMethoditer
Iterates over all expressions in this set
saffron/src/parse.rs:605
↓ 1 callersMethoditerAfter
* Returns an iterator of all times starting after the specified date. * @param {Date} date The date to start the iterator after * @returns {Cron
saffron-web/pkg/saffron.js:154
↓ 1 callersMethoditerFrom
* Returns an iterator of all times starting at the specified date. * @param {Date} date The date to start the iterator from * @returns {CronTime
saffron-web/pkg/saffron.js:144
↓ 1 callersFunctionjsonResponseHeaders
()
saffron-worker/worker/worker.js:16
↓ 1 callersMethodlast
(&self)
saffron/src/lib.rs:134
↓ 1 callersFunctionnext
(cron: &str)
saffron-worker/src/lib.rs:174
↓ 1 callersMethodnext
(&mut self)
saffron/src/lib.rs:1499
↓ 1 callersMethodnext
(&mut self)
saffron-web/src/lib.rs:92
↓ 1 callersMethodnextAfter
* Returns the next matching date starting after the given date. * * @param {Date} date The start date * @returns {Date | undefined} The next
saffron-web/pkg/saffron.js:135
↓ 1 callersMethodnextFrom
* Returns the next matching date starting from the given date. This includes the date given, * which will have seconds truncated if the minute matc
saffron-web/pkg/saffron.js:124
↓ 1 callersMethodnext_after
(&self, date: JsDate)
saffron-web/src/lib.rs:59
↓ 1 callersFunctionnext_month_in_year
(d: Date<Utc>)
saffron/src/lib.rs:1460
↓ 1 callersFunctionnext_of_many
(crons: JsArray)
saffron-worker/src/lib.rs:190
↓ 1 callersMethodnth
(&self)
saffron/src/lib.rs:143
↓ 1 callersMethodparseAndDescribe
* Parses a cron expression into a cron value and string description. * * @param {string} s The string value to parse * @returns {[Cron, stri
saffron-web/pkg/saffron.js:69
↓ 1 callersFunctionprevious_minute
(dt: DateTime<Utc>)
saffron/src/lib.rs:1449
↓ 1 callersFunctionvalidate
(crons: JsArray)
saffron-worker/src/lib.rs:111
Method[Symbol.iterator]
* Returns this instance. * @returns {CronTimesIter}
saffron-web/pkg/saffron.js:42
Methodadd_ors
(mut pattern: u8, expr: OrsExpr<parse::DayOfWeek>)
saffron/src/lib.rs:188
Functionall
()
saffron/src/parse.rs:1119
Methodany
* Returns whether this cron value will match on any one time. * * If a cron value is used that only matches on a day of the month that's not con
saffron-web/pkg/saffron.js:103
Methodbyte_to_weekday
(value: u8)
saffron/src/lib.rs:120
Functionchrono_to_js_date
(date: DateTime<Utc>)
saffron-web/src/lib.rs:7
Functionclosest_weekday
()
saffron/src/parse.rs:1654
Functionclosest_weekday_with_other_exprs
()
saffron/src/parse.rs:1662
Methodcmp
(&self, other: &Self)
saffron/src/parse.rs:363
Methodcompile
(expr: Self::Expr)
saffron/src/lib.rs:86
Functioncomplex
()
saffron/src/describe/english.rs:499
Methodconstructor
* Parses a cron expression into a cron value. * * @param {string} s The string value to parse * @throws If the string is not a valid cron exp
saffron-web/pkg/saffron.js:58
Methodcontains
* Returns whether this cron value matches on the specified date. * @param {Date} date The date to check * @returns {boolean} `true` if the cron
saffron-web/pkg/saffron.js:112
Methodcron
Returns the underlying cron value.
saffron/src/lib.rs:1491
Functioncron_benchmark
(c: &mut Criterion)
saffron/benches/cron.rs:3
Functioncron_without_any_yields_none
()
saffron/src/lib.rs:1972
Functionday_of_month
()
saffron/src/describe/english.rs:456
Methodday_of_month
(&self, h: OrsExpr<DayOfMonth>)
saffron/src/describe/english.rs:144
Functionday_of_week
()
saffron/src/describe/english.rs:512
Methodday_of_week
(&self, h: OrsExpr<DayOfWeek>)
saffron/src/describe/english.rs:131
Methoddefault
()
saffron/src/describe/english.rs:46
Methoddescription
(&self)
saffron-worker/src/lib.rs:61
Functiondom_expr
(input: &str)
saffron/src/parse.rs:838
next →1–100 of 204, ranked by callers