pub struct BlockImage {
pub src: ImageSource,
pub width: Option<Length>,
pub align: Align,
pub caption: Option<Vec<Inline>>,
pub decor: ImageDecor,
}Expand description
块级图片。
Fields§
§src: ImageSource图片来源。
width: Option<Length>显示宽度;None = 适配内容宽(不超出)。
align: Align水平对齐。
caption: Option<Vec<Inline>>图注(排在图下方,居中小字);None = 无。
decor: ImageDecor装饰层(角标/边框/水印/圆角/阴影);默认全无。
Trait Implementations§
Source§impl Clone for BlockImage
impl Clone for BlockImage
Source§fn clone(&self) -> BlockImage
fn clone(&self) -> BlockImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§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 BlockImage
impl RefUnwindSafe for BlockImage
impl Send for BlockImage
impl Sync for BlockImage
impl Unpin for BlockImage
impl UnsafeUnpin for BlockImage
impl UnwindSafe for BlockImage
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