pub struct VctrsAttrs {
pub kind: VctrsKind,
pub base: Option<String>,
pub inherit_base_type: Option<bool>,
pub ptype: Option<String>,
pub abbr: Option<String>,
}Expand description
Attributes for vctrs class generation.
Fields§
§kind: VctrsKindThe vctrs kind (vctr, rcrd, list_of)
base: Option<String>Base type for vctr (e.g., “double”, “integer”, “character”)
inherit_base_type: Option<bool>Whether to inherit base type in class vector
ptype: Option<String>Prototype type for list_of (R expression)
abbr: Option<String>Abbreviation for vec_ptype_abbr (for printing)
Trait Implementations§
Source§impl Clone for VctrsAttrs
impl Clone for VctrsAttrs
Source§fn clone(&self) -> VctrsAttrs
fn clone(&self) -> VctrsAttrs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VctrsAttrs
impl Debug for VctrsAttrs
Source§impl Default for VctrsAttrs
impl Default for VctrsAttrs
Source§fn default() -> VctrsAttrs
fn default() -> VctrsAttrs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VctrsAttrs
impl RefUnwindSafe for VctrsAttrs
impl Send for VctrsAttrs
impl Sync for VctrsAttrs
impl Unpin for VctrsAttrs
impl UnsafeUnpin for VctrsAttrs
impl UnwindSafe for VctrsAttrs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes