pub enum Field {
Name(Arc<str>),
Index(usize),
}Expand description
A selector for a field in a struct
Variants§
Implementations§
Source§impl Field
impl Field
Sourcepub fn is_indexed(&self) -> bool
pub fn is_indexed(&self) -> bool
Returns true if the field is defined by Index
Sourcepub fn into_named_field(self, field_names: &FieldNames) -> VortexResult<Self>
pub fn into_named_field(self, field_names: &FieldNames) -> VortexResult<Self>
Convert a field to a named field
Sourcepub fn into_index_field(self, field_names: &FieldNames) -> VortexResult<Self>
pub fn into_index_field(self, field_names: &FieldNames) -> VortexResult<Self>
Convert a field to an indexed field
Trait Implementations§
Source§impl FromIterator<Field> for FieldPath
impl FromIterator<Field> for FieldPath
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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