pub struct ImageBorder {
pub width: f32,
pub color: Color,
}Expand description
图片边框(沿图缘描边;有圆角时随圆角)。
Fields§
§width: f32线宽(逻辑像素)。
color: Color颜色。
Trait Implementations§
Source§impl Clone for ImageBorder
impl Clone for ImageBorder
Source§fn clone(&self) -> ImageBorder
fn clone(&self) -> ImageBorder
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 moreimpl Copy for ImageBorder
Source§impl Debug for ImageBorder
impl Debug for ImageBorder
Source§impl PartialEq for ImageBorder
impl PartialEq for ImageBorder
Source§fn eq(&self, other: &ImageBorder) -> bool
fn eq(&self, other: &ImageBorder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageBorder
Auto Trait Implementations§
impl Freeze for ImageBorder
impl RefUnwindSafe for ImageBorder
impl Send for ImageBorder
impl Sync for ImageBorder
impl Unpin for ImageBorder
impl UnsafeUnpin for ImageBorder
impl UnwindSafe for ImageBorder
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