pub struct FactorData {
pub values: Vec<i32>,
pub levels: Vec<Arc<str>>,
pub ordered: bool,
}Expand description
Factor structure (boxed to reduce RObject enum size)
Fields§
§values: Vec<i32>§levels: Vec<Arc<str>>§ordered: boolImplementations§
Source§impl FactorData
impl FactorData
Sourcepub fn with_attributes(self, attributes: Attributes) -> RObject
pub fn with_attributes(self, attributes: Attributes) -> RObject
Build a factor object with additional attributes (e.g., names, contrasts). Base factor attributes (levels, class) are included automatically and can be overridden by the provided attributes if needed.
Trait Implementations§
Source§impl Clone for FactorData
impl Clone for FactorData
Source§fn clone(&self) -> FactorData
fn clone(&self) -> FactorData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FactorData
impl Debug for FactorData
Source§impl PartialEq for FactorData
impl PartialEq for FactorData
impl StructuralPartialEq for FactorData
Auto Trait Implementations§
impl Freeze for FactorData
impl RefUnwindSafe for FactorData
impl Send for FactorData
impl Sync for FactorData
impl Unpin for FactorData
impl UnwindSafe for FactorData
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)