pub struct AspectRatio {
pub defer: bool,
pub align: Align,
pub slice: bool,
}Expand description
Representation of the preserveAspectRatio attribute.
SVG 2 removed the defer keyword, but we still support it.
Fields§
§defer: bool<defer> value.
Set to true when defer value is present.
align: Align<align> value.
slice: bool<meetOrSlice> value.
- Set to
truewhenslicevalue is present. - Set to
falsewhenmeetvalue is present or value is not set at all.
Trait Implementations§
Source§impl Clone for AspectRatio
impl Clone for AspectRatio
Source§fn clone(&self) -> AspectRatio
fn clone(&self) -> AspectRatio
Returns a duplicate of the value. Read more
1.0.0 · 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 AspectRatio
impl Debug for AspectRatio
Source§impl Default for AspectRatio
impl Default for AspectRatio
Source§fn default() -> AspectRatio
fn default() -> AspectRatio
Returns the “default value” for a type. Read more
Source§impl FromStr for AspectRatio
impl FromStr for AspectRatio
Source§impl<'a, 'input: 'a> FromValue<'a, 'input> for AspectRatio
impl<'a, 'input: 'a> FromValue<'a, 'input> for AspectRatio
Source§impl Hash for AspectRatio
impl Hash for AspectRatio
Source§impl PartialEq for AspectRatio
impl PartialEq for AspectRatio
Source§impl ToTokens for AspectRatio
impl ToTokens for AspectRatio
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Copy for AspectRatio
impl Eq for AspectRatio
impl StructuralPartialEq for AspectRatio
Auto Trait Implementations§
impl Freeze for AspectRatio
impl RefUnwindSafe for AspectRatio
impl Send for AspectRatio
impl Sync for AspectRatio
impl Unpin for AspectRatio
impl UnwindSafe for AspectRatio
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.