Trait vortex_array::visitor::ArrayVisitor

source ·
pub trait ArrayVisitor {
    // Provided methods
    fn visit_child(
        &mut self,
        _name: &str,
        _array: &ArrayData,
    ) -> VortexResult<()> { ... }
    fn visit_validity(&mut self, validity: &Validity) -> VortexResult<()> { ... }
    fn visit_patches(&mut self, patches: &Patches) -> VortexResult<()> { ... }
    fn visit_buffer(&mut self, _buffer: &Buffer) -> VortexResult<()> { ... }
}

Provided Methods§

source

fn visit_child(&mut self, _name: &str, _array: &ArrayData) -> VortexResult<()>

Visit a child of this array.

source

fn visit_validity(&mut self, validity: &Validity) -> VortexResult<()>

Utility for visiting Array validity.

source

fn visit_patches(&mut self, patches: &Patches) -> VortexResult<()>

Utility for visiting Array patches.

source

fn visit_buffer(&mut self, _buffer: &Buffer) -> VortexResult<()>

Implementors§

source§

impl ArrayVisitor for ChildrenCollector

source§

impl ArrayVisitor for NamedChildrenCollector

source§

impl<'a, 'b: 'a> ArrayVisitor for TreeFormatter<'a, 'b>

TODO(ngates): I think we want to go back to the old explicit style. It gives arrays more control over how their metadata etc is displayed.