pub struct ProgramBindings { /* private fields */ }Expand description
Immutable tensor defaults and large constants kept outside semantic structure.
Implementations§
Source§impl ProgramBindings
impl ProgramBindings
Sourcepub fn get(&self, key: BindingKey) -> Option<&RetainedValue>
pub fn get(&self, key: BindingKey) -> Option<&RetainedValue>
Borrow a tensor by opaque binding key.
Sourcepub fn iter(
&self,
) -> impl ExactSizeIterator<Item = (BindingKey, &RetainedValue)> + '_
pub fn iter( &self, ) -> impl ExactSizeIterator<Item = (BindingKey, &RetainedValue)> + '_
Iterate over ordered binding keys and borrowed move-only values.
Trait Implementations§
Source§impl Clone for ProgramBindings
impl Clone for ProgramBindings
Source§fn clone(&self) -> ProgramBindings
fn clone(&self) -> ProgramBindings
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ProgramBindings
impl !UnwindSafe for ProgramBindings
impl Freeze for ProgramBindings
impl Send for ProgramBindings
impl Sync for ProgramBindings
impl Unpin for ProgramBindings
impl UnsafeUnpin for ProgramBindings
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