pub struct ScalePoint {
pub step: u32,
pub scale_bits: u32,
}Expand description
One exact LoRA scale beginning at a completed-step boundary.
Fields§
§step: u32Zero-based step at which this scale becomes active.
scale_bits: u32Exact IEEE-754 scale bits.
Implementations§
Trait Implementations§
Source§impl Clone for ScalePoint
impl Clone for ScalePoint
impl Copy for ScalePoint
Source§impl Debug for ScalePoint
impl Debug for ScalePoint
Source§impl<'de> Deserialize<'de> for ScalePoint
impl<'de> Deserialize<'de> for ScalePoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScalePoint
Source§impl PartialEq for ScalePoint
impl PartialEq for ScalePoint
Source§impl Serialize for ScalePoint
impl Serialize for ScalePoint
impl StructuralPartialEq for ScalePoint
Auto Trait Implementations§
impl Freeze for ScalePoint
impl RefUnwindSafe for ScalePoint
impl Send for ScalePoint
impl Sync for ScalePoint
impl Unpin for ScalePoint
impl UnsafeUnpin for ScalePoint
impl UnwindSafe for ScalePoint
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