pub struct LocosCode {
pub id: String,
pub letter: char,
pub open: Option<String>,
pub close: Option<String>,
pub free: bool,
pub unpaired: Option<TagKind>,
}Expand description
What the side map holds for one token number.
Fields§
§id: StringBilingua tag id.
letter: charKind letter used in the token: g/r/… for a pair, x or p for a standalone code.
open: Option<String>Display of the opening (or standalone) tag.
close: Option<String>Display of the closing tag, when the pair has one in the text.
free: boolStandalone code that may move freely.
unpaired: Option<TagKind>For an x token that stands for an Open or Close with no partner: which side it is.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LocosCode
impl<'de> Deserialize<'de> for LocosCode
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
impl Eq for LocosCode
impl StructuralPartialEq for LocosCode
Auto Trait Implementations§
impl Forget for LocosCode
impl Freeze for LocosCode
impl Move for LocosCode
impl RefUnwindSafe for LocosCode
impl Send for LocosCode
impl Sync for LocosCode
impl Unpin for LocosCode
impl UnsafeUnpin for LocosCode
impl UnwindSafe for LocosCode
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