pub struct Inferred {
pub lang: String,
pub source: Option<usize>,
pub candidates: Vec<usize>,
}Expand description
A pair the layout infers for a document in a translation position.
Fields§
§lang: String§source: Option<usize>The source, when exactly one document is in the source position.
candidates: Vec<usize>Every document in the source position (more than one is ambiguous).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inferred
impl RefUnwindSafe for Inferred
impl Send for Inferred
impl Sync for Inferred
impl Unpin for Inferred
impl UnsafeUnpin for Inferred
impl UnwindSafe for Inferred
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more