#[non_exhaustive]pub struct FeatureRef {
pub layer: LayerId,
pub fid: i64,
pub part: Option<u32>,
}Expand description
Feature provenance within a topology, including an optional original part index.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.layer: LayerIdTopology-scoped layer ID.
fid: i64Signed feature ID, unique within its layer.
part: Option<u32>Zero-based depth-first part index, including skipped degenerate parts.
None means multiple parts contributed or no single part is identified.
Trait Implementations§
Source§impl Clone for FeatureRef
impl Clone for FeatureRef
Source§fn clone(&self) -> FeatureRef
fn clone(&self) -> FeatureRef
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 moreimpl Copy for FeatureRef
Source§impl Debug for FeatureRef
impl Debug for FeatureRef
impl Eq for FeatureRef
Source§impl Hash for FeatureRef
impl Hash for FeatureRef
Source§impl Ord for FeatureRef
impl Ord for FeatureRef
Source§fn cmp(&self, other: &FeatureRef) -> Ordering
fn cmp(&self, other: &FeatureRef) -> Ordering
1.21.0 (const: unstable) · 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 FeatureRef
impl PartialEq for FeatureRef
Source§impl PartialOrd for FeatureRef
impl PartialOrd for FeatureRef
Source§impl Serialize for FeatureRef
impl Serialize for FeatureRef
impl StructuralPartialEq for FeatureRef
Auto Trait Implementations§
impl Freeze for FeatureRef
impl RefUnwindSafe for FeatureRef
impl Send for FeatureRef
impl Sync for FeatureRef
impl Unpin for FeatureRef
impl UnsafeUnpin for FeatureRef
impl UnwindSafe for FeatureRef
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