[][src]Struct pyo3::types::PyTime

pub struct PyTime(_, _);

Bindings for datetime.time

Methods

impl PyTime[src]

pub fn new<'p>(
    py: Python<'p>,
    hour: u8,
    minute: u8,
    second: u8,
    microsecond: u32,
    tzinfo: Option<&PyObject>
) -> PyResult<&'p PyTime>
[src]

pub fn new_with_fold<'p>(
    py: Python<'p>,
    hour: u8,
    minute: u8,
    second: u8,
    microsecond: u32,
    tzinfo: Option<&PyObject>,
    fold: bool
) -> PyResult<&'p PyTime>
[src]

Alternate constructor that takes a fold argument

First available in Python 3.6.

Trait Implementations

impl AsPyPointer for PyTime[src]

fn as_ptr(&self) -> *mut PyObject[src]

Gets the underlying FFI pointer, returns a borrowed pointer.

impl ToPyObject for PyTime[src]

impl PyNativeType for PyTime[src]

impl PyTypeInfo for PyTime[src]

type Type = ()

Type of objects to store in PyObject struct

type BaseType = PyAny

Base class

impl PyObjectAlloc for PyTime[src]

impl PyTypeObject for PyTime[src]

impl PyTimeAccess for PyTime[src]

impl AsRef<PyAny> for PyTime[src]

impl<'a> From<&'a PyTime> for &'a PyAny[src]

impl PartialEq<PyTime> for PyTime[src]

impl Display for PyTime[src]

impl Debug for PyTime[src]

Auto Trait Implementations

impl !Send for PyTime

impl !Sync for PyTime

impl Unpin for PyTime

impl UnwindSafe for PyTime

impl !RefUnwindSafe for PyTime

Blanket Implementations

impl<T> PyObjectAlloc for T where
    T: PyObjectWithFreeList
[src]

impl<T> PyTypeObject for T where
    T: PyTypeInfo + PyMethodsProtocol + PyObjectAlloc
[src]

impl<T> PyTypeCreate for T where
    T: PyObjectAlloc + PyTypeObject
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]