pub struct VectorProjectionSourceV1 { /* private fields */ }Expand description
Stable logical identity of one compiler-declared vector projection.
Implementations§
Source§impl VectorProjectionSourceV1
impl VectorProjectionSourceV1
Sourcepub const fn new(
lineage: ContractLineage,
entity_type: EntityTypeId,
vector_field: FieldId,
) -> Self
pub const fn new( lineage: ContractLineage, entity_type: EntityTypeId, vector_field: FieldId, ) -> Self
Constructs a source identity from compiler-owned stable IDs.
Sourcepub const fn lineage(&self) -> &ContractLineage
pub const fn lineage(&self) -> &ContractLineage
Contract lineage owning this projection.
Sourcepub const fn entity_type(&self) -> EntityTypeId
pub const fn entity_type(&self) -> EntityTypeId
Compiler-assigned entity identity.
Sourcepub const fn vector_field(&self) -> FieldId
pub const fn vector_field(&self) -> FieldId
Compiler-assigned vector field identity.
Trait Implementations§
Source§impl Clone for VectorProjectionSourceV1
impl Clone for VectorProjectionSourceV1
Source§impl Debug for VectorProjectionSourceV1
impl Debug for VectorProjectionSourceV1
impl Eq for VectorProjectionSourceV1
Source§impl Hash for VectorProjectionSourceV1
impl Hash for VectorProjectionSourceV1
Source§impl Ord for VectorProjectionSourceV1
impl Ord for VectorProjectionSourceV1
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VectorProjectionSourceV1
impl PartialEq for VectorProjectionSourceV1
Source§impl PartialOrd for VectorProjectionSourceV1
impl PartialOrd for VectorProjectionSourceV1
impl StructuralPartialEq for VectorProjectionSourceV1
Auto Trait Implementations§
impl Freeze for VectorProjectionSourceV1
impl RefUnwindSafe for VectorProjectionSourceV1
impl Send for VectorProjectionSourceV1
impl Sync for VectorProjectionSourceV1
impl Unpin for VectorProjectionSourceV1
impl UnsafeUnpin for VectorProjectionSourceV1
impl UnwindSafe for VectorProjectionSourceV1
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