pub struct SamplingStateFacts {
pub temperature: f32,
pub requires_positive_temperature: bool,
pub has_rng: bool,
}Expand description
Native facts consumed by shared validation; contains no mutable native handle.
Fields§
§temperature: f32Current effective temperature.
requires_positive_temperature: boolThe retained sampler requires strictly positive temperature (Mirostat).
has_rng: boolAn exact resumable RNG stream exists, including while temporarily greedy.
Trait Implementations§
Source§impl Clone for SamplingStateFacts
impl Clone for SamplingStateFacts
Source§fn clone(&self) -> SamplingStateFacts
fn clone(&self) -> SamplingStateFacts
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 moreimpl Copy for SamplingStateFacts
Source§impl Debug for SamplingStateFacts
impl Debug for SamplingStateFacts
Source§impl<'de> Deserialize<'de> for SamplingStateFacts
impl<'de> Deserialize<'de> for SamplingStateFacts
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
Source§impl PartialEq for SamplingStateFacts
impl PartialEq for SamplingStateFacts
Source§impl Serialize for SamplingStateFacts
impl Serialize for SamplingStateFacts
impl StructuralPartialEq for SamplingStateFacts
Auto Trait Implementations§
impl Freeze for SamplingStateFacts
impl RefUnwindSafe for SamplingStateFacts
impl Send for SamplingStateFacts
impl Sync for SamplingStateFacts
impl Unpin for SamplingStateFacts
impl UnsafeUnpin for SamplingStateFacts
impl UnwindSafe for SamplingStateFacts
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