pub enum CopyLaw {
Weight(Format),
RowScaleF32,
BlockGridF32(u32, u32),
}Expand description
2026-10-02: How a copy’s bytes follow from the weight’s out x k shape.
Variants§
Weight(Format)
2026-10-02: A whole weight in this format (Format::weight_bytes).
RowScaleF32
2026-10-02: One F32 scale per output row (out x 4).
BlockGridF32(u32, u32)
2026-10-02: One F32 scale per r x c block (ceil(out/r) x ceil(k/c) x 4).
Implementations§
Trait Implementations§
impl Copy for CopyLaw
impl Eq for CopyLaw
impl StructuralPartialEq for CopyLaw
Auto Trait Implementations§
impl Freeze for CopyLaw
impl RefUnwindSafe for CopyLaw
impl Send for CopyLaw
impl Sync for CopyLaw
impl Unpin for CopyLaw
impl UnwindSafe for CopyLaw
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.