[−][src]Struct vocab::Translation
Fields
local: String
foreign: String
guesses_local_total: i32
guesses_local_correct: i32
guesses_foreign_total: i32
guesses_foreign_correct: i32
Methods
impl Translation
[src]
pub fn new(local: &str, foreign: &str) -> Translation
[src]
pub fn get_total_percent(&self) -> f64
[src]
pub fn guess_local(&mut self, guess: &str) -> bool
[src]
pub fn guess_foreign(&mut self, guess: &str) -> bool
[src]
pub fn reconcile(
self,
other: Translation
) -> Result<Translation, VocabStoreError>
[src]
self,
other: Translation
) -> Result<Translation, VocabStoreError>
Trait Implementations
impl Debug for Translation
[src]
impl Default for Translation
[src]
fn default() -> Translation
[src]
impl PartialEq<Translation> for Translation
[src]
fn eq(&self, other: &Translation) -> bool
[src]
fn ne(&self, other: &Translation) -> bool
[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Translation where
(String, String, i32, i32, i32, i32): Queryable<__ST, __DB>,
[src]
(String, String, i32, i32, i32, i32): Queryable<__ST, __DB>,
type Row = <(String, String, i32, i32, i32, i32) as Queryable<__ST, __DB>>::Row
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self
[src]
impl StructuralPartialEq for Translation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnwindSafe for Translation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,