pub struct MapOutput { /* private fields */ }Expand description
Map output
Implementations§
Source§impl MapOutput
impl MapOutput
Sourcepub fn seed(&self) -> Option<u64>
pub fn seed(&self) -> Option<u64>
The seed can be saved and used in next compute to keep output stable.
Sourcepub fn reorder<'list: 'map, 'map, T>(
&'map self,
list: &'list [T],
) -> impl ExactSizeIterator<Item = &'list T> + DoubleEndedIterator + 'map
pub fn reorder<'list: 'map, 'map, T>( &'map self, list: &'list [T], ) -> impl ExactSizeIterator<Item = &'list T> + DoubleEndedIterator + 'map
Generates a reordered iterator based on the constructed map.
The lengths of provided lists must be equal.
Sourcepub fn create_map(
&self,
name: String,
data: ReferenceId,
builder: &mut CodeBuilder<'_>,
) -> Result<ReferenceId>
pub fn create_map( &self, name: String, data: ReferenceId, builder: &mut CodeBuilder<'_>, ) -> Result<ReferenceId>
Create static map
§NOTE
The provided data must be reordered, otherwise the behavior will be unexpected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapOutput
impl RefUnwindSafe for MapOutput
impl Send for MapOutput
impl Sync for MapOutput
impl Unpin for MapOutput
impl UnwindSafe for MapOutput
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