pub struct StatementAddress { /* private fields */ }
Expand description
A statement is located by giving its segment and index within the segment.
Implementations§
Source§impl StatementAddress
impl StatementAddress
Sourcepub const fn new(segment_id: SegmentId, index: StatementIndex) -> Self
pub const fn new(segment_id: SegmentId, index: StatementIndex) -> Self
Constructs a statement address from its parts.
Sourcepub const fn unbounded_range(self) -> GlobalRange
pub const fn unbounded_range(self) -> GlobalRange
Convert a statement address into a statement range from here to the logical end of the database.
Trait Implementations§
Source§impl Clone for StatementAddress
impl Clone for StatementAddress
Source§fn clone(&self) -> StatementAddress
fn clone(&self) -> StatementAddress
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 Comparer<StatementAddress> for Database
impl Comparer<StatementAddress> for Database
Source§fn cmp(&self, left: &StatementAddress, right: &StatementAddress) -> Ordering
fn cmp(&self, left: &StatementAddress, right: &StatementAddress) -> Ordering
Compares two objects, like
Ord::cmp
, but with additional state data
from the comparer that can be used for the ordering.Source§impl Debug for StatementAddress
impl Debug for StatementAddress
Source§impl Default for StatementAddress
impl Default for StatementAddress
Source§fn default() -> StatementAddress
fn default() -> StatementAddress
Returns the “default value” for a type. Read more
Source§impl Hash for StatementAddress
impl Hash for StatementAddress
Source§impl PartialEq for StatementAddress
impl PartialEq for StatementAddress
impl Copy for StatementAddress
impl Eq for StatementAddress
impl StructuralPartialEq for StatementAddress
Auto Trait Implementations§
impl Freeze for StatementAddress
impl RefUnwindSafe for StatementAddress
impl Send for StatementAddress
impl Sync for StatementAddress
impl Unpin for StatementAddress
impl UnwindSafe for StatementAddress
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