pub struct Configuration {
pub target: Option<Target>,
pub printer: Printer,
pub zone_minutes: Option<i32>,
pub number_separators: Option<NumberSeparators>,
pub fonts: Fonts,
}Expand description
The configuration of a layout: the target, and the setup of Word’s machine and the fonts.
Fields§
§target: Option<Target>The target whose pages the layout reproduces.
printer: PrinterThe printer that Word lays out for.
zone_minutes: Option<i32>The time zone of Word’s machine, in minutes east of UTC.
number_separators: Option<NumberSeparators>The decimal and the group separator of the numbers of Word’s machine, such as ".,".
fonts: FontsThe fonts of Word’s machine and of this computer.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn of(target: Target) -> Configuration
pub fn of(target: Target) -> Configuration
The configuration of target with the target’s defaults, which its profile holds.
Sourcepub fn layered(layers: &[&Configuration]) -> (Configuration, Vec<LayeredValue>)
pub fn layered(layers: &[&Configuration]) -> (Configuration, Vec<LayeredValue>)
The configuration that layers give, each laid over the ones before it key by key, and
each value that it sets with the layer that gave it, in the order of the fields and of
the family names.
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 Configuration
impl Debug for Configuration
Source§impl Default for Configuration
impl Default for Configuration
Source§fn default() -> Configuration
fn default() -> Configuration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Configuration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Configuration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Configuration
Source§impl PartialEq for Configuration
impl PartialEq for Configuration
Source§impl Serialize for Configuration
impl Serialize for Configuration
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Configuration
Auto Trait Implementations§
impl Forget for Configuration
impl Freeze for Configuration
impl Move for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configurationwhere
NonZeroU32Inner: UnsafeUnpin,
*const LeafNode<String, bool> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, bool)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Configurationwhere
NonZero<u32>: UnwindSafe,
BTreeMap<String, bool>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.