pub struct GraphLayoutVersion {
pub major: u32,
pub minor: u32,
}Expand description
Graph layout version. In the format of major.minor.
Fields§
§major: u32§minor: u32Implementations§
Source§impl GraphLayoutVersion
impl GraphLayoutVersion
pub const fn new(major: u32, minor: u32) -> Self
pub fn major_version(&self) -> u32
pub fn minor_version(&self) -> u32
Sourcepub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Serialize the GraphLayoutVersion object to a byte vector with 8 bytes.
Layout:
| MajorVersion (4 bytes) | MinorVersion (4 bytes) |
The layout_version contains two parts. The first 32 bits are the major version number in u32 format, and the last 32 bits are the minor version number in u32 format.
Backward incompatible layout changes should increment the major version number while backward compatible changes increments the minor version number.
Trait Implementations§
Source§impl Clone for GraphLayoutVersion
impl Clone for GraphLayoutVersion
Source§fn clone(&self) -> GraphLayoutVersion
fn clone(&self) -> GraphLayoutVersion
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 GraphLayoutVersion
impl Debug for GraphLayoutVersion
Source§impl Display for GraphLayoutVersion
impl Display for GraphLayoutVersion
Source§impl Ord for GraphLayoutVersion
impl Ord for GraphLayoutVersion
Source§impl PartialEq for GraphLayoutVersion
impl PartialEq for GraphLayoutVersion
Source§impl PartialOrd for GraphLayoutVersion
impl PartialOrd for GraphLayoutVersion
Source§impl<'a> TryFrom<&'a [u8]> for GraphLayoutVersion
impl<'a> TryFrom<&'a [u8]> for GraphLayoutVersion
impl Eq for GraphLayoutVersion
impl StructuralPartialEq for GraphLayoutVersion
Auto Trait Implementations§
impl Freeze for GraphLayoutVersion
impl RefUnwindSafe for GraphLayoutVersion
impl Send for GraphLayoutVersion
impl Sync for GraphLayoutVersion
impl Unpin for GraphLayoutVersion
impl UnwindSafe for GraphLayoutVersion
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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