pub struct PyDelta(/* private fields */);
Expand description
Bindings for datetime.timedelta
.
Values of this type are accessed via PyO3’s smart pointers, e.g. as
Py<PyDelta>
or Bound<'py, PyDelta>
.
Implementations§
Trait Implementations§
Source§impl AsPyPointer for PyDelta
impl AsPyPointer for PyDelta
Source§impl PyTypeInfo for PyDelta
impl PyTypeInfo for PyDelta
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.impl DerefToPyAny for PyDelta
impl PyLayout<PyDelta> for PyDateTime_Delta
impl PySizedLayout<PyDelta> for PyDateTime_Delta
Auto Trait Implementations§
impl !Freeze for PyDelta
impl !RefUnwindSafe for PyDelta
impl !Send for PyDelta
impl !Sync for PyDelta
impl Unpin for PyDelta
impl UnwindSafe for PyDelta
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