pub(crate) struct CivilDayNanosecond(());Tuple Fields§
§0: ()Implementations§
Source§impl CivilDayNanosecond
impl CivilDayNanosecond
pub(crate) const MIN: i64 = 0i64
pub(crate) const MAX: i64 = 86_399_999_999_999i64
const LEN: i128 = 86_400_000_000_000i128
pub(crate) const fn error() -> BoundsError
pub(crate) fn check(n: impl Into<i64>) -> Result<i64, BoundsError>
pub(crate) const fn checkc(n: i64) -> Result<i64, BoundsError>
pub(crate) fn check128(n: impl Into<i128>) -> Result<i64, BoundsError>
pub(crate) fn parse(bytes: &[u8]) -> Result<i64, Error>
pub(crate) fn checked_add(n1: i64, n2: i64) -> Result<i64, BoundsError>
pub(crate) fn checked_sub(n1: i64, n2: i64) -> Result<i64, BoundsError>
pub(crate) fn checked_mul(n1: i64, n2: i64) -> Result<i64, BoundsError>
Trait Implementations§
Source§impl Bounds for CivilDayNanosecond
impl Bounds for CivilDayNanosecond
Source§const WHAT: &'static str = "nanoseconds (in one civil day)"
const WHAT: &'static str = "nanoseconds (in one civil day)"
A short human readable description of the values represented by these
bounds.
Source§const MIN: Self::Primitive = {transmute(0x0000000000000000): <util::b::CivilDayNanosecond as util::b::Bounds>::Primitive}
const MIN: Self::Primitive = {transmute(0x0000000000000000): <util::b::CivilDayNanosecond as util::b::Bounds>::Primitive}
The minimum boundary value.
Source§const MAX: Self::Primitive = {transmute(0x00004e94914effff): <util::b::CivilDayNanosecond as util::b::Bounds>::Primitive}
const MAX: Self::Primitive = {transmute(0x00004e94914effff): <util::b::CivilDayNanosecond as util::b::Bounds>::Primitive}
The maximum boundary value.
Source§fn error() -> BoundsError
fn error() -> BoundsError
Create an error when a value is outside the bounds for this type.
Source§fn check(n: impl Into<i64>) -> Result<Self::Primitive, BoundsError>
fn check(n: impl Into<i64>) -> Result<Self::Primitive, BoundsError>
Converts the 64-bit integer provided into the primitive representation
of these bounds. Read more
Source§fn check128(n: impl Into<i128>) -> Result<Self::Primitive, BoundsError>
fn check128(n: impl Into<i128>) -> Result<Self::Primitive, BoundsError>
Converts the 128-bit integer provided into the primitive representation
of these bounds. Read more
Source§fn check_self(n: Self::Primitive) -> Result<Self::Primitive, BoundsError>
fn check_self(n: Self::Primitive) -> Result<Self::Primitive, BoundsError>
Checks whether the given integer, in the same primitive representation
as this boundary type, is in bounds. Read more
Source§fn parse(bytes: &[u8]) -> Result<Self::Primitive, Error>
fn parse(bytes: &[u8]) -> Result<Self::Primitive, Error>
Parses a 64-bit integer from the beginning to the end of the given
slice of bytes. Read more
Source§fn checked_add(
n1: Self::Primitive,
n2: Self::Primitive,
) -> Result<Self::Primitive, BoundsError>
fn checked_add( n1: Self::Primitive, n2: Self::Primitive, ) -> Result<Self::Primitive, BoundsError>
Performs checked addition using this boundary type’s primitive
representation. Read more
Source§fn checked_sub(
n1: Self::Primitive,
n2: Self::Primitive,
) -> Result<Self::Primitive, BoundsError>
fn checked_sub( n1: Self::Primitive, n2: Self::Primitive, ) -> Result<Self::Primitive, BoundsError>
Performs checked subtraction using this boundary type’s primitive
representation. Read more
Source§fn checked_mul(
n1: Self::Primitive,
n2: Self::Primitive,
) -> Result<Self::Primitive, BoundsError>
fn checked_mul( n1: Self::Primitive, n2: Self::Primitive, ) -> Result<Self::Primitive, BoundsError>
Performs checked multiplication using this boundary type’s primitive
representation. Read more
Auto Trait Implementations§
impl Freeze for CivilDayNanosecond
impl RefUnwindSafe for CivilDayNanosecond
impl Send for CivilDayNanosecond
impl Sync for CivilDayNanosecond
impl Unpin for CivilDayNanosecond
impl UnwindSafe for CivilDayNanosecond
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