#[non_exhaustive]pub struct LocosUnit {
pub p_index: i64,
pub segment_id: String,
pub text: String,
pub map: LocosMap,
pub style: String,
}Expand description
One translatable segment as the Localization OS adapter numbers it (locos_units).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.p_index: i64LocOS’s paragraph index (TextUnit.p_index).
segment_id: StringThe Bilingua segment id the index stands for (what locos_set_target takes).
text: StringThe segment’s source as LocOS text, tokens included (tokens::to_locos_text_coded).
map: LocosMapThe side map of the tokens in text, for tokens::from_locos_text.
style: StringLocOS’s style for the unit: locos.style, else context.style, else empty.
Trait Implementations§
impl Eq for LocosUnit
impl StructuralPartialEq for LocosUnit
Auto Trait Implementations§
impl Forget for LocosUnit
impl Freeze for LocosUnit
impl Move for LocosUnit
impl RefUnwindSafe for LocosUnit
impl Send for LocosUnit
impl Sync for LocosUnit
impl Unpin for LocosUnit
impl UnsafeUnpin for LocosUnit
impl UnwindSafe for LocosUnit
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