pub struct DbId(pub i64);
Expand description
Database id is a wrapper around i64
.
The id is an identifier of a database element
both nodes and edges. The positive ids represent nodes,
negative ids represent edges. The value of 0
is
logically invalid (there cannot be element with id 0) and a default.
Tuple Fields§
§0: i64
Implementations§
Trait Implementations§
Source§impl Ord for DbId
impl Ord for DbId
Source§impl PartialOrd for DbId
impl PartialOrd for DbId
Source§impl StableHash for DbId
impl StableHash for DbId
fn stable_hash(&self) -> u64
fn add_to_hash(hash: &mut u64, value: u64)
impl Copy for DbId
impl Eq for DbId
impl StructuralPartialEq for DbId
Auto Trait Implementations§
impl Freeze for DbId
impl RefUnwindSafe for DbId
impl Send for DbId
impl Sync for DbId
impl Unpin for DbId
impl UnwindSafe for DbId
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