pub struct TextSegmentSource {
pub text: Option<String>,
pub binding: Option<String>,
pub gap_after: Length,
}Expand description
One same-style inline segment. Exactly one of text and binding is set.
Fields§
§text: Option<String>Literal segment content.
binding: Option<String>Typed string binding expression for dynamic segment content.
gap_after: LengthExplicit gap after this segment; only nonnegative absolute/logical units are accepted.
Trait Implementations§
Source§impl Clone for TextSegmentSource
impl Clone for TextSegmentSource
Source§impl Debug for TextSegmentSource
impl Debug for TextSegmentSource
Source§impl<'de> Deserialize<'de> for TextSegmentSource
impl<'de> Deserialize<'de> for TextSegmentSource
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
Source§impl PartialEq for TextSegmentSource
impl PartialEq for TextSegmentSource
Source§impl Serialize for TextSegmentSource
impl Serialize for TextSegmentSource
impl StructuralPartialEq for TextSegmentSource
Auto Trait Implementations§
impl Freeze for TextSegmentSource
impl RefUnwindSafe for TextSegmentSource
impl Send for TextSegmentSource
impl Sync for TextSegmentSource
impl Unpin for TextSegmentSource
impl UnsafeUnpin for TextSegmentSource
impl UnwindSafe for TextSegmentSource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.