pub struct TableEqualityOptions(/* private fields */);Expand description
Modify behavior of crate::TableCollection::equals.
§Examples
§Set default (empty) flags
let f = TableEqualityOptions::default();§Builder API
let f = TableEqualityOptions::default().ignore_metadata();
assert_eq!(f, TableEqualityOptions::IGNORE_METADATA);let f = TableEqualityOptions::default().ignore_ts_metadata();
assert_eq!(f, TableEqualityOptions::IGNORE_TS_METADATA);let f = TableEqualityOptions::default().ignore_timestamps();
assert_eq!(f, TableEqualityOptions::IGNORE_TIMESTAMPS);let f = TableEqualityOptions::default().ignore_provenance();
assert_eq!(f, TableEqualityOptions::IGNORE_PROVENANCE);
let f = f.ignore_metadata();
assert!(f.contains(TableEqualityOptions::IGNORE_PROVENANCE));
assert!(f.contains(TableEqualityOptions::IGNORE_METADATA));§Method chaining
let f = TableEqualityOptions::default().ignore_provenance().ignore_metadata();
assert!(f.contains(TableEqualityOptions::IGNORE_PROVENANCE));
assert!(f.contains(TableEqualityOptions::IGNORE_METADATA));Implementations§
Source§impl TableEqualityOptions
impl TableEqualityOptions
pub const IGNORE_METADATA: Self
pub const IGNORE_TS_METADATA: Self
pub const IGNORE_PROVENANCE: Self
pub const IGNORE_TIMESTAMPS: Self
Sourcepub fn ignore_metadata(self) -> Self
pub fn ignore_metadata(self) -> Self
Set IGNORE_METADATA
Sourcepub fn ignore_ts_metadata(self) -> Self
pub fn ignore_ts_metadata(self) -> Self
Sourcepub fn ignore_provenance(self) -> Self
pub fn ignore_provenance(self) -> Self
Sourcepub fn ignore_timestamps(self) -> Self
pub fn ignore_timestamps(self) -> Self
pub fn bits(&self) -> RawFlags
pub fn all() -> Self
pub fn contains<I>(&self, bit: I) -> bool
Trait Implementations§
Source§impl BitAnd for TableEqualityOptions
impl BitAnd for TableEqualityOptions
Source§impl BitAndAssign for TableEqualityOptions
impl BitAndAssign for TableEqualityOptions
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for TableEqualityOptions
impl BitOr for TableEqualityOptions
Source§impl BitOrAssign for TableEqualityOptions
impl BitOrAssign for TableEqualityOptions
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for TableEqualityOptions
impl BitXor for TableEqualityOptions
Source§impl BitXorAssign for TableEqualityOptions
impl BitXorAssign for TableEqualityOptions
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for TableEqualityOptions
impl Clone for TableEqualityOptions
Source§fn clone(&self) -> TableEqualityOptions
fn clone(&self) -> TableEqualityOptions
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 moreSource§impl Debug for TableEqualityOptions
impl Debug for TableEqualityOptions
Source§impl Default for TableEqualityOptions
impl Default for TableEqualityOptions
Source§fn default() -> TableEqualityOptions
fn default() -> TableEqualityOptions
Returns the “default value” for a type. Read more
Source§impl From<u32> for TableEqualityOptions
impl From<u32> for TableEqualityOptions
Source§impl Hash for TableEqualityOptions
impl Hash for TableEqualityOptions
Source§impl Ord for TableEqualityOptions
impl Ord for TableEqualityOptions
Source§fn cmp(&self, other: &TableEqualityOptions) -> Ordering
fn cmp(&self, other: &TableEqualityOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TableEqualityOptions
impl PartialEq for TableEqualityOptions
Source§impl PartialOrd for TableEqualityOptions
impl PartialOrd for TableEqualityOptions
impl Copy for TableEqualityOptions
impl Eq for TableEqualityOptions
impl StructuralPartialEq for TableEqualityOptions
Auto Trait Implementations§
impl Freeze for TableEqualityOptions
impl RefUnwindSafe for TableEqualityOptions
impl Send for TableEqualityOptions
impl Sync for TableEqualityOptions
impl Unpin for TableEqualityOptions
impl UnsafeUnpin for TableEqualityOptions
impl UnwindSafe for TableEqualityOptions
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