pub struct Key<B: Backend> { /* private fields */ }Expand description
A random key: two u32 words (or an array of keys, shape [..., 2]).
Implementations§
Trait Implementations§
Source§impl<B: Backend> Tree<B> for Key<B>
A key is a pytree with one leaf, its data (u32[..., 2]).
impl<B: Backend> Tree<B> for Key<B>
A key is a pytree with one leaf, its data (u32[..., 2]).
Source§fn unflatten_like(&self, leaves: &mut dyn Iterator<Item = B::Leaf>) -> Self
fn unflatten_like(&self, leaves: &mut dyn Iterator<Item = B::Leaf>) -> Self
Builds a value of the same structure from leaves.
Auto Trait Implementations§
impl<B> Freeze for Key<B>
impl<B> RefUnwindSafe for Key<B>where
<B as Backend>::KeyData: RefUnwindSafe,
impl<B> Send for Key<B>
impl<B> Sync for Key<B>
impl<B> Unpin for Key<B>
impl<B> UnsafeUnpin for Key<B>where
<B as Backend>::KeyData: UnsafeUnpin,
impl<B> UnwindSafe for Key<B>where
<B as Backend>::KeyData: UnwindSafe,
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