pub struct InlineShape {
pub shape_def: ShapeDefinition,
pub fill: Option<ColorU>,
pub stroke: Option<Stroke>,
pub baseline_offset: f32,
pub source_node_id: Option<NodeId>,
}Fields§
§shape_def: ShapeDefinition§fill: Option<ColorU>§stroke: Option<Stroke>§baseline_offset: f32§source_node_id: Option<NodeId>The NodeId of the element that created this shape (e.g., inline-block) - this allows us to look up styling information (background, border) when rendering
Trait Implementations§
Source§impl Clone for InlineShape
impl Clone for InlineShape
Source§fn clone(&self) -> InlineShape
fn clone(&self) -> InlineShape
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineShape
impl Debug for InlineShape
Source§impl Hash for InlineShape
impl Hash for InlineShape
Source§impl PartialEq for InlineShape
impl PartialEq for InlineShape
Source§impl PartialOrd for InlineShape
impl PartialOrd for InlineShape
impl Eq for InlineShape
Auto Trait Implementations§
impl Freeze for InlineShape
impl RefUnwindSafe for InlineShape
impl Send for InlineShape
impl Sync for InlineShape
impl Unpin for InlineShape
impl UnwindSafe for InlineShape
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more