pub struct Squeezed {
pub dir: Vec<f32>,
pub norm: f32,
pub range: f32,
}Expand description
A vector split into the direction that gets stored and the two numbers that turn it back into what the client sent.
Fields§
§dir: Vec<f32>The direction, of unit length, in the form the quantisation leaves it.
norm: f32How long the client’s vector was.
range: f32The widest coordinate of the direction, which is Q8’s scale and is 0
for the other two because they have no scale.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Squeezed
impl RefUnwindSafe for Squeezed
impl Send for Squeezed
impl Sync for Squeezed
impl Unpin for Squeezed
impl UnsafeUnpin for Squeezed
impl UnwindSafe for Squeezed
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