/dports/graphics/lazpaint/lazpaint-7.1.6/resources/scripts/lazpaint/ |
H A D | colors.py | 14 def to_std(linear_value: float): function 32 …return RGBA(to_std(1-to_linear(self.red)), to_std(1-to_linear(self.green)), to_std(1-to_linear(sel… 38 …gray = to_std(to_linear(self.red)*0.299 + to_linear(self.green)*0.587 + to_linear(self.blue)*0.114)
|
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/chrono-0.4.13/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/time-0.1.43/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/time-0.1.43/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/time-0.1.43/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/devel/interactive_rebase_tool/git-interactive-rebase-tool-1.2.1/cargo-crates/chrono-0.4.6/src/ |
H A D | oldtime.rs | 274 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 609 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 610 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 611 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 612 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 613 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 614 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 615 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 617 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/time-0.1.43/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/misc/broot/broot-1.7.0/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/misc/broot/broot-1.7.0/cargo-crates/time-0.1.43/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/net/gemserv/gemserv-v0.4.5/cargo-crates/time-0.1.44/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/time-0.1.43/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/cargo-crates/time-0.1.44/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/devel/sccache/sccache-0.2.15/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/net/gemserv/gemserv-v0.4.5/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/cargo-crates/chrono-0.4.15/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/devel/bingrep/bingrep-0.8.5/cargo-crates/time-0.1.44/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/devel/git-absorb/git-absorb-0.6.6/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/chrono-0.4.19/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/time-0.1.44/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/games/genact/genact-0.10.0/cargo-crates/chrono-0.4.15/src/ |
H A D | oldtime.rs | 294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 651 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 652 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 653 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 654 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 655 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 656 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std() 658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
|
/dports/games/genact/genact-0.10.0/cargo-crates/time-0.1.43/src/ |
H A D | duration.rs | 282 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 624 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 625 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 626 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 627 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 628 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 629 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 630 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 632 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|
/dports/accessibility/sctd/sctd-0.2.0/cargo-crates/chrono-0.4.11/src/ |
H A D | oldtime.rs | 275 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() method 612 assert_eq!(Duration::seconds(1).to_std(), Ok(StdDuration::new(1, 0))); in test_to_std() 613 assert_eq!(Duration::seconds(86401).to_std(), Ok(StdDuration::new(86401, 0))); in test_to_std() 614 assert_eq!(Duration::milliseconds(123).to_std(), Ok(StdDuration::new(0, 123000000))); in test_to_std() 615 assert_eq!(Duration::milliseconds(123765).to_std(), Ok(StdDuration::new(123, 765000000))); in test_to_std() 616 assert_eq!(Duration::nanoseconds(777).to_std(), Ok(StdDuration::new(0, 777))); in test_to_std() 617 assert_eq!(MAX.to_std(), Ok(StdDuration::new(9223372036854775, 807000000))); in test_to_std() 618 assert_eq!(Duration::seconds(-1).to_std(), in test_to_std() 620 assert_eq!(Duration::milliseconds(-1).to_std(), in test_to_std()
|