pub enum SkelPart {
Raw(String),
Unit(usize),
}Expand description
One piece of a text skeleton: literal output, or the place where a unit’s text goes. Closed: anything else a
format needs lives in its own parts’ text or in Unit::hidden.
Variants§
Raw(String)
Literal output.
Unit(usize)
Index into Document::units. The parser decides how the unit’s inlines are rendered (escaping, codes).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SkelPart
impl<'de> Deserialize<'de> for SkelPart
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 SkelPart
impl StructuralPartialEq for SkelPart
Auto Trait Implementations§
impl Forget for SkelPart
impl Freeze for SkelPart
impl RefUnwindSafe for SkelPart
impl Send for SkelPart
impl Sync for SkelPart
impl Unpin for SkelPart
impl UnsafeUnpin for SkelPart
impl UnwindSafe for SkelPart
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