pub struct DxfStated {
pub bold: bool,
pub italic: bool,
pub strike: bool,
pub underline: bool,
pub size: bool,
pub name: bool,
pub scheme: Option<String>,
pub protection: bool,
}Expand description
The parts a differential format states at a value its Style can’t tell from unset: a dxf’s
default parts are unset, so a bold turned off, a face, a size or a protection that matches the
defaults would otherwise read as nothing. The values are the style’s own; this records that
the format states them, and only where they match the defaults, so a format built in the app
and the same format read back from a file stay equal.
Fields§
§bold: bool§italic: bool§strike: bool§underline: bool§size: bool§name: bool§scheme: Option<String><scheme val>: the theme font the face follows (major, minor or none).
protection: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for DxfStated
impl<'de> Deserialize<'de> for DxfStated
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
impl Eq for DxfStated
impl StructuralPartialEq for DxfStated
Auto Trait Implementations§
impl Freeze for DxfStated
impl RefUnwindSafe for DxfStated
impl Send for DxfStated
impl Sync for DxfStated
impl Unpin for DxfStated
impl UnsafeUnpin for DxfStated
impl UnwindSafe for DxfStated
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.