pub struct ModeOutcome {
pub mode: String,
pub tokens_in: usize,
pub tokens_out: usize,
pub density: f64,
}Fields§
§mode: String§tokens_in: usize§tokens_out: usize§density: f64Implementations§
Source§impl ModeOutcome
impl ModeOutcome
pub fn efficiency(&self) -> f64
Trait Implementations§
Source§impl Clone for ModeOutcome
impl Clone for ModeOutcome
Source§fn clone(&self) -> ModeOutcome
fn clone(&self) -> ModeOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModeOutcome
impl Debug for ModeOutcome
Source§impl<'de> Deserialize<'de> for ModeOutcome
impl<'de> Deserialize<'de> for ModeOutcome
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
Auto Trait Implementations§
impl Freeze for ModeOutcome
impl RefUnwindSafe for ModeOutcome
impl Send for ModeOutcome
impl Sync for ModeOutcome
impl Unpin for ModeOutcome
impl UnsafeUnpin for ModeOutcome
impl UnwindSafe for ModeOutcome
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