pub struct OffsetFlows<'c> {
pub flows: &'c [Flow],
pub offset: IVec2,
}Expand description
A chunk’s flows plus their absolute XY placement offset.
The lower phase appends block-template flows directly with the instantiating node’s offset instead of materializing translated copies per node.
Fields§
§flows: &'c [Flow]The chunk’s template-local flows.
offset: IVec2XY offset placing the flows in absolute coordinates.
Implementations§
Source§impl<'c> OffsetFlows<'c>
impl<'c> OffsetFlows<'c>
Sourcepub fn new(flows: &'c [Flow], offset: IVec2) -> OffsetFlows<'c>
pub fn new(flows: &'c [Flow], offset: IVec2) -> OffsetFlows<'c>
Pairs a flow slice with its placement offset.
Trait Implementations§
Source§impl<'c> Clone for OffsetFlows<'c>
impl<'c> Clone for OffsetFlows<'c>
Source§fn clone(&self) -> OffsetFlows<'c>
fn clone(&self) -> OffsetFlows<'c>
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<'c> Copy for OffsetFlows<'c>
Auto Trait Implementations§
impl<'c> Freeze for OffsetFlows<'c>
impl<'c> RefUnwindSafe for OffsetFlows<'c>
impl<'c> Send for OffsetFlows<'c>
impl<'c> Sync for OffsetFlows<'c>
impl<'c> Unpin for OffsetFlows<'c>
impl<'c> UnsafeUnpin for OffsetFlows<'c>
impl<'c> UnwindSafe for OffsetFlows<'c>
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