pub struct IntervalDtype {
pub subtype: DType,
pub closed: Option<IntervalClosed>,
}Expand description
Pandas-equivalent interval dtype descriptor (pd.IntervalDtype).
Encapsulates the interval subtype and endpoint closure behavior.
Fields§
§subtype: DType§closed: Option<IntervalClosed>Implementations§
Source§impl IntervalDtype
impl IntervalDtype
Sourcepub const fn new(subtype: DType, closed: Option<IntervalClosed>) -> Self
pub const fn new(subtype: DType, closed: Option<IntervalClosed>) -> Self
Construct a new IntervalDtype.
Sourcepub const fn closed(&self) -> Option<IntervalClosed>
pub const fn closed(&self) -> Option<IntervalClosed>
Return the endpoint closure convention.
Trait Implementations§
Source§impl AsDType for IntervalDtype
impl AsDType for IntervalDtype
Source§impl Clone for IntervalDtype
impl Clone for IntervalDtype
Source§impl Debug for IntervalDtype
impl Debug for IntervalDtype
Source§impl Default for IntervalDtype
impl Default for IntervalDtype
Source§impl<'de> Deserialize<'de> for IntervalDtype
impl<'de> Deserialize<'de> for IntervalDtype
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IntervalDtype
impl Display for IntervalDtype
impl Eq for IntervalDtype
Source§impl PartialEq for IntervalDtype
impl PartialEq for IntervalDtype
Source§impl Serialize for IntervalDtype
impl Serialize for IntervalDtype
impl StructuralPartialEq for IntervalDtype
Auto Trait Implementations§
impl Forget for IntervalDtype
impl Freeze for IntervalDtype
impl Move for IntervalDtype
impl RefUnwindSafe for IntervalDtype
impl Send for IntervalDtype
impl Sync for IntervalDtype
impl Unpin for IntervalDtype
impl UnsafeUnpin for IntervalDtype
impl UnwindSafe for IntervalDtype
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