pub struct SelectionNode {
pub content_type: SelectionContentType,
pub field_type: SelectionFieldType,
pub selection_list: Vec<f64>,
pub array_name: Option<String>,
}Expand description
A single node in a selection, specifying what to select and how.
Fields§
§content_type: SelectionContentType§field_type: SelectionFieldType§selection_list: Vec<f64>The selection data — interpretation depends on content_type. For Indices: list of i64 indices. For Thresholds: [min, max] pairs.
array_name: Option<String>Optional array name for Thresholds content type.
Implementations§
Source§impl SelectionNode
impl SelectionNode
Sourcepub fn from_point_indices(indices: Vec<i64>) -> Self
pub fn from_point_indices(indices: Vec<i64>) -> Self
Create a selection by point indices.
Sourcepub fn from_cell_indices(indices: Vec<i64>) -> Self
pub fn from_cell_indices(indices: Vec<i64>) -> Self
Create a selection by cell indices.
Sourcepub fn from_threshold(
array_name: &str,
min: f64,
max: f64,
field_type: SelectionFieldType,
) -> Self
pub fn from_threshold( array_name: &str, min: f64, max: f64, field_type: SelectionFieldType, ) -> Self
Create a threshold selection on a named array.
Trait Implementations§
Source§impl Clone for SelectionNode
impl Clone for SelectionNode
Source§fn clone(&self) -> SelectionNode
fn clone(&self) -> SelectionNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectionNode
impl RefUnwindSafe for SelectionNode
impl Send for SelectionNode
impl Sync for SelectionNode
impl Unpin for SelectionNode
impl UnsafeUnpin for SelectionNode
impl UnwindSafe for SelectionNode
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more