#[repr(C)]pub struct PyDateTime_Delta {
pub ob_base: PyObject,
pub hashcode: isize,
pub days: i32,
pub seconds: i32,
pub microseconds: i32,
}
Expand description
Structure representing a datetime.timedelta
.
Fields§
§ob_base: PyObject
§hashcode: isize
Available on neither
§PyPy
nor GraalPy
.days: i32
Available on non-
§GraalPy
only.seconds: i32
Available on non-
§GraalPy
only.microseconds: i32
Available on non-
GraalPy
only.Trait Implementations§
Source§impl Debug for PyDateTime_Delta
impl Debug for PyDateTime_Delta
impl PyLayout<PyDelta> for PyDateTime_Delta
Available on non-
Py_LIMITED_API
only.impl PySizedLayout<PyDelta> for PyDateTime_Delta
Available on non-
Py_LIMITED_API
only.Auto Trait Implementations§
impl Freeze for PyDateTime_Delta
impl RefUnwindSafe for PyDateTime_Delta
impl !Send for PyDateTime_Delta
impl !Sync for PyDateTime_Delta
impl Unpin for PyDateTime_Delta
impl UnwindSafe for PyDateTime_Delta
Blanket Implementations§
Source§impl<T> AssertNotZeroSized for T
impl<T> AssertNotZeroSized for T
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> 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