pub struct AdjustmentValue {
pub name: String,
pub raw_value: i64,
}Expand description
Fields§
§name: String调整值名称(如 “adj”、“adj1”、“adj2”)。
raw_value: i64原始值(从 fmla="val <value>" 中提取的数值,单位 1/100000)。
Implementations§
Source§impl AdjustmentValue
impl AdjustmentValue
Sourcepub fn from_normalized(name: impl Into<String>, value: f64) -> AdjustmentValue
pub fn from_normalized(name: impl Into<String>, value: f64) -> AdjustmentValue
Sourcepub fn effective_value(&self) -> f64
pub fn effective_value(&self) -> f64
归一化值(0.0-1.0,即 raw_value / 100000.0)。
对应 python-pptx Adjustment.effective_value。
Trait Implementations§
Source§impl Clone for AdjustmentValue
impl Clone for AdjustmentValue
Source§fn clone(&self) -> AdjustmentValue
fn clone(&self) -> AdjustmentValue
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 AdjustmentValue
impl Debug for AdjustmentValue
Source§impl Default for AdjustmentValue
impl Default for AdjustmentValue
Source§fn default() -> AdjustmentValue
fn default() -> AdjustmentValue
Returns the “default value” for a type. Read more
impl Eq for AdjustmentValue
Source§impl PartialEq for AdjustmentValue
impl PartialEq for AdjustmentValue
Source§fn eq(&self, other: &AdjustmentValue) -> bool
fn eq(&self, other: &AdjustmentValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdjustmentValue
Auto Trait Implementations§
impl Freeze for AdjustmentValue
impl RefUnwindSafe for AdjustmentValue
impl Send for AdjustmentValue
impl Sync for AdjustmentValue
impl Unpin for AdjustmentValue
impl UnsafeUnpin for AdjustmentValue
impl UnwindSafe for AdjustmentValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.