pub struct ImagePosition {
pub start_col_index: i32,
pub start_row_index: i32,
pub offset_x: f64,
pub offset_y: f64,
}Expand description
图片位置
Fields§
§start_col_index: i32起始列索引(从0开始)
start_row_index: i32起始行索引(从0开始)
offset_x: f64在单元格内的水平偏移量(像素)
offset_y: f64在单元格内的垂直偏移量(像素)
Implementations§
Trait Implementations§
Source§impl Debug for ImagePosition
impl Debug for ImagePosition
Source§impl Default for ImagePosition
impl Default for ImagePosition
Source§fn default() -> ImagePosition
fn default() -> ImagePosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImagePosition
impl<'de> Deserialize<'de> for ImagePosition
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
Auto Trait Implementations§
impl Freeze for ImagePosition
impl RefUnwindSafe for ImagePosition
impl Send for ImagePosition
impl Sync for ImagePosition
impl Unpin for ImagePosition
impl UnwindSafe for ImagePosition
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