pub struct BlockStyle {
pub text: TextStyle,
pub padding: EdgeInsets,
pub decoration: BoxDecoration,
}Expand description
How a block drawn in a box looks: a quote or a code block.
Fields§
§text: TextStyleMerged onto the text style of the blocks inside.
padding: EdgeInsetsBetween the decoration’s edge and the content.
decoration: BoxDecorationTrait Implementations§
Source§impl Clone for BlockStyle
impl Clone for BlockStyle
Source§impl Debug for BlockStyle
impl Debug for BlockStyle
Source§impl PartialEq for BlockStyle
impl PartialEq for BlockStyle
impl StructuralPartialEq for BlockStyle
Auto Trait Implementations§
impl !RefUnwindSafe for BlockStyle
impl !Send for BlockStyle
impl !Sync for BlockStyle
impl !UnwindSafe for BlockStyle
impl Forget for BlockStyle
impl Freeze for BlockStylewhere
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const RcInner<Paint> is !null: Freeze,
PhantomData<RcInner<Paint>>: Freeze,
PhantomData<Shadow>: Freeze,
PhantomData<FontFeature>: Freeze,
PhantomData<FontVariation>: Freeze,
*const RcInner<dyn BoxBorder> is !null: Freeze,
PhantomData<RcInner<dyn BoxBorder>>: Freeze,
PhantomData<BoxShadow>: Freeze,
*const RcInner<dyn Gradient> is !null: Freeze,
PhantomData<RcInner<dyn Gradient>>: Freeze,
impl Move for BlockStyle
impl Unpin for BlockStyle
impl UnsafeUnpin for BlockStylewhere
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const RcInner<Paint> is !null: UnsafeUnpin,
PhantomData<RcInner<Paint>>: UnsafeUnpin,
PhantomData<Shadow>: UnsafeUnpin,
PhantomData<FontFeature>: UnsafeUnpin,
PhantomData<FontVariation>: UnsafeUnpin,
*const RcInner<dyn BoxBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BoxBorder>>: UnsafeUnpin,
PhantomData<BoxShadow>: UnsafeUnpin,
*const RcInner<dyn Gradient> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Gradient>>: UnsafeUnpin,
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