pub struct InlineFragment {
pub node_id: Option<NodeId>,
pub text: String,
pub width: FixedPoint,
pub ascent: FixedPoint,
pub descent: FixedPoint,
pub color: u32,
pub font_size: FixedPoint,
pub font_weight: u16,
pub underline: bool,
pub line_through: bool,
}Expand description
A fragment within an inline line box
Fields§
§node_id: Option<NodeId>§text: String§width: FixedPoint§ascent: FixedPoint§descent: FixedPoint§color: u32§font_size: FixedPoint§font_weight: u16§underline: bool§line_through: boolTrait Implementations§
Source§impl Clone for InlineFragment
impl Clone for InlineFragment
Source§fn clone(&self) -> InlineFragment
fn clone(&self) -> InlineFragment
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InlineFragment
impl RefUnwindSafe for InlineFragment
impl Send for InlineFragment
impl Sync for InlineFragment
impl Unpin for InlineFragment
impl UnwindSafe for InlineFragment
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)