pub enum InstanceProvenance {
Source,
Block {
source: IVec3,
},
Pipe {
src: IVec3,
dst: IVec3,
},
SpatialPortSubstitution {
source: IVec3,
role: PortRole,
part: SpatialPortPart,
},
}Expand description
Why a template instance exists.
Variants§
Source
Direct source instance.
Block
Instance emitted for a source block.
Fields
§
source: IVec3Source block position.
Pipe
Instance emitted for a source pipe.
SpatialPortSubstitution
Instance emitted while replacing a spatial port.
Implementations§
Source§impl InstanceProvenance
impl InstanceProvenance
Sourcepub const fn is_spatial_port_substitution(self) -> bool
pub const fn is_spatial_port_substitution(self) -> bool
Whether this instance belongs to a spatial-port substitution.
Trait Implementations§
Source§impl Clone for InstanceProvenance
impl Clone for InstanceProvenance
Source§fn clone(&self) -> InstanceProvenance
fn clone(&self) -> InstanceProvenance
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 InstanceProvenance
Source§impl Debug for InstanceProvenance
impl Debug for InstanceProvenance
Source§impl Default for InstanceProvenance
impl Default for InstanceProvenance
Source§fn default() -> InstanceProvenance
fn default() -> InstanceProvenance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceProvenance
impl<'de> Deserialize<'de> for InstanceProvenance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InstanceProvenance
Source§impl Hash for InstanceProvenance
impl Hash for InstanceProvenance
Source§impl PartialEq for InstanceProvenance
impl PartialEq for InstanceProvenance
Source§impl Serialize for InstanceProvenance
impl Serialize for InstanceProvenance
impl StructuralPartialEq for InstanceProvenance
Auto Trait Implementations§
impl Freeze for InstanceProvenance
impl RefUnwindSafe for InstanceProvenance
impl Send for InstanceProvenance
impl Sync for InstanceProvenance
impl Unpin for InstanceProvenance
impl UnsafeUnpin for InstanceProvenance
impl UnwindSafe for InstanceProvenance
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.