pub struct ChangedSpan {
pub start: Vec<u8>,
pub end: Option<Vec<u8>>,
}Expand description
Half-open key range that was recently changed.
start is inclusive and end is exclusive. end == None means the span
extends to the end of the keyspace. Changed-span hints are performance
sidecars for sync and indexing jobs; they do not change tree semantics.
Fields§
§start: Vec<u8>Inclusive lower key bound.
end: Option<Vec<u8>>Exclusive upper key bound, or None for the rest of the keyspace.
Implementations§
Trait Implementations§
Source§impl Clone for ChangedSpan
impl Clone for ChangedSpan
Source§fn clone(&self) -> ChangedSpan
fn clone(&self) -> ChangedSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChangedSpan
impl Debug for ChangedSpan
Source§impl<'de> Deserialize<'de> for ChangedSpan
impl<'de> Deserialize<'de> for ChangedSpan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChangedSpan
Source§impl PartialEq for ChangedSpan
impl PartialEq for ChangedSpan
Source§impl Serialize for ChangedSpan
impl Serialize for ChangedSpan
impl StructuralPartialEq for ChangedSpan
Auto Trait Implementations§
impl Freeze for ChangedSpan
impl RefUnwindSafe for ChangedSpan
impl Send for ChangedSpan
impl Sync for ChangedSpan
impl Unpin for ChangedSpan
impl UnsafeUnpin for ChangedSpan
impl UnwindSafe for ChangedSpan
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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