Struct msbfinal_db::ContrastCoefficients [−][src]
pub struct ContrastCoefficients { /* fields omitted */ }
Expand description
The contrast coefficients structure stores the recorded contrast coefficients for structure pairings.
Implementations
impl ContrastCoefficients
[src]
impl ContrastCoefficients
[src]pub fn new() -> ContrastCoefficients
[src]
pub fn new() -> ContrastCoefficients
[src]Return an empty CC table
pub fn insert_inlines(&mut self, a: Inlines, b: Inlines, val: f32)
[src]
pub fn insert_inlines(&mut self, a: Inlines, b: Inlines, val: f32)
[src]Insert a record of Inlines and a contrast coefficient.
pub fn insert_align(&mut self, a: Align, b: Align, val: f32)
[src]
pub fn insert_align(&mut self, a: Align, b: Align, val: f32)
[src]Insert a record of Aligns and a contrast coefficient.
pub fn insert_font(&mut self, a: Font, b: Font, val: f32)
[src]
pub fn insert_font(&mut self, a: Font, b: Font, val: f32)
[src]Insert a record of Fonts and a contrast coefficient.
pub fn get_from_inlines(&self, a: &Inlines, b: &Inlines) -> Option<&Vec<f32>>
[src]
pub fn get_from_inlines(&self, a: &Inlines, b: &Inlines) -> Option<&Vec<f32>>
[src]Get the corresponding contrast coefficients for inline styles
Trait Implementations
impl<'de> Deserialize<'de> for ContrastCoefficients
[src]
impl<'de> Deserialize<'de> for ContrastCoefficients
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for ContrastCoefficients
[src]
impl Serialize for ContrastCoefficients
[src]Auto Trait Implementations
impl RefUnwindSafe for ContrastCoefficients
impl Send for ContrastCoefficients
impl Sync for ContrastCoefficients
impl Unpin for ContrastCoefficients
impl UnwindSafe for ContrastCoefficients
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,