pub struct CustomGeometry {
pub fill: Option<String>,
pub stroke: Option<String>,
pub rect: Option<GeomRect>,
pub path_list: Vec<Path>,
}Expand description
自定义几何(<a:custGeom>)。
对应 OOXML 中 <a:custGeom> 元素,包含路径列表和可选的填充/描边/内嵌区域。
Fields§
§fill: Option<String>是否允许填充(<a:fill>,默认 “norm”)。None 表示不写出。
stroke: Option<String>是否允许描边(<a:stroke>,默认 “norm”)。None 表示不写出。
rect: Option<GeomRect>内嵌区域(<a:rect l="..." t="..." r="..." b="..."/>,可选)。
path_list: Vec<Path>路径列表(<a:pathLst>)。
Implementations§
Trait Implementations§
Source§impl Clone for CustomGeometry
impl Clone for CustomGeometry
Source§fn clone(&self) -> CustomGeometry
fn clone(&self) -> CustomGeometry
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 CustomGeometry
impl Debug for CustomGeometry
Source§impl Default for CustomGeometry
impl Default for CustomGeometry
Source§fn default() -> CustomGeometry
fn default() -> CustomGeometry
Returns the “default value” for a type. Read more
impl Eq for CustomGeometry
Source§impl PartialEq for CustomGeometry
impl PartialEq for CustomGeometry
Source§fn eq(&self, other: &CustomGeometry) -> bool
fn eq(&self, other: &CustomGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CustomGeometry
Auto Trait Implementations§
impl Freeze for CustomGeometry
impl RefUnwindSafe for CustomGeometry
impl Send for CustomGeometry
impl Sync for CustomGeometry
impl Unpin for CustomGeometry
impl UnsafeUnpin for CustomGeometry
impl UnwindSafe for CustomGeometry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.