pub struct StyledSpan {
pub text: String,
pub style: TextStyle,
}Expand description
A contiguous run of text sharing the same style.
Fields§
§text: StringThe text content of this span.
style: TextStyleThe visual style applied to this span.
Implementations§
Trait Implementations§
Source§impl Clone for StyledSpan
impl Clone for StyledSpan
Source§fn clone(&self) -> StyledSpan
fn clone(&self) -> StyledSpan
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 StyledSpan
impl Debug for StyledSpan
Source§impl<'de> Deserialize<'de> for StyledSpan
impl<'de> Deserialize<'de> for StyledSpan
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 StyledSpan
impl PartialEq for StyledSpan
Source§impl Serialize for StyledSpan
impl Serialize for StyledSpan
impl StructuralPartialEq for StyledSpan
Auto Trait Implementations§
impl Freeze for StyledSpan
impl RefUnwindSafe for StyledSpan
impl Send for StyledSpan
impl Sync for StyledSpan
impl Unpin for StyledSpan
impl UnsafeUnpin for StyledSpan
impl UnwindSafe for StyledSpan
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