Trait VisitorVTable

Source
pub trait VisitorVTable<V: VTable> {
    // Required methods
    fn visit_buffers(array: &V::Array, visitor: &mut dyn ArrayBufferVisitor);
    fn visit_children(array: &V::Array, visitor: &mut dyn ArrayChildVisitor);

    // Provided methods
    fn nbuffers(array: &V::Array) -> usize { ... }
    fn nchildren(array: &V::Array) -> usize { ... }
}

Required Methods§

Source

fn visit_buffers(array: &V::Array, visitor: &mut dyn ArrayBufferVisitor)

Visit the buffers of the array.

Source

fn visit_children(array: &V::Array, visitor: &mut dyn ArrayChildVisitor)

Visit the children of the array.

Provided Methods§

Source

fn nbuffers(array: &V::Array) -> usize

Count the number of buffers in the array.

Source

fn nchildren(array: &V::Array) -> usize

Count the number of children in the array.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§