pub enum DrawingObject {
Picture(Box<SheetPicture>),
Chart(Box<SheetChart>),
}Expand description
The object anchored by a DrawingAnchor — a picture or a chart.
Variants§
Picture(Box<SheetPicture>)
Boxed: an embedded picture’s own encoded bytes make it, in turn, the largest variant once
Chart below was boxed (clippy’s large_enum_variant moves on to whichever variant is now
biggest).
Chart(Box<SheetChart>)
Boxed for the same reason as word-ooxml’s RunContent::Chart and powerpoint-ooxml’s
Shape::Chart — a chart’s own nested ChartSpace otherwise forces every DrawingObject,
picture or chart alike, to pay for the largest variant’s size.
Trait Implementations§
Source§impl Clone for DrawingObject
impl Clone for DrawingObject
Source§fn clone(&self) -> DrawingObject
fn clone(&self) -> DrawingObject
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 moreSource§impl Debug for DrawingObject
impl Debug for DrawingObject
Source§impl PartialEq for DrawingObject
impl PartialEq for DrawingObject
impl StructuralPartialEq for DrawingObject
Auto Trait Implementations§
impl Freeze for DrawingObject
impl RefUnwindSafe for DrawingObject
impl Send for DrawingObject
impl Sync for DrawingObject
impl Unpin for DrawingObject
impl UnsafeUnpin for DrawingObject
impl UnwindSafe for DrawingObject
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