Struct web_sys::SvgPreserveAspectRatio
source · #[repr(transparent)]pub struct SvgPreserveAspectRatio { /* private fields */ }
Expand description
The SVGPreserveAspectRatio
object
This API requires the following crate features to be activated: SvgPreserveAspectRatio
Implementations§
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
sourcepub fn meet_or_slice(&self) -> u16
pub fn meet_or_slice(&self) -> u16
The meetOrSlice
getter
This API requires the following crate features to be activated: SvgPreserveAspectRatio
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
sourcepub fn set_meet_or_slice(&self, meet_or_slice: u16)
pub fn set_meet_or_slice(&self, meet_or_slice: u16)
The meetOrSlice
setter
This API requires the following crate features to be activated: SvgPreserveAspectRatio
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_UNKNOWN: u16 = 0u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_NONE: u16 = 1u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMINYMIN: u16 = 2u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMIDYMIN: u16 = 3u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMAXYMIN: u16 = 4u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMINYMID: u16 = 5u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMIDYMID: u16 = 6u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMAXYMID: u16 = 7u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMINYMAX: u16 = 8u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMIDYMAX: u16 = 9u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_PRESERVEASPECTRATIO_XMAXYMAX: u16 = 10u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_MEETORSLICE_UNKNOWN: u16 = 0u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_MEETORSLICE_MEET: u16 = 1u16
source§impl SvgPreserveAspectRatio
impl SvgPreserveAspectRatio
pub const SVG_MEETORSLICE_SLICE: u16 = 2u16
Trait Implementations§
source§impl AsRef<JsValue> for SvgPreserveAspectRatio
impl AsRef<JsValue> for SvgPreserveAspectRatio
source§impl AsRef<Object> for SvgPreserveAspectRatio
impl AsRef<Object> for SvgPreserveAspectRatio
source§impl Clone for SvgPreserveAspectRatio
impl Clone for SvgPreserveAspectRatio
source§fn clone(&self) -> SvgPreserveAspectRatio
fn clone(&self) -> SvgPreserveAspectRatio
Returns a copy 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 SvgPreserveAspectRatio
impl Debug for SvgPreserveAspectRatio
source§impl From<JsValue> for SvgPreserveAspectRatio
impl From<JsValue> for SvgPreserveAspectRatio
source§fn from(obj: JsValue) -> SvgPreserveAspectRatio
fn from(obj: JsValue) -> SvgPreserveAspectRatio
Converts to this type from the input type.
source§impl From<SvgPreserveAspectRatio> for JsValue
impl From<SvgPreserveAspectRatio> for JsValue
source§fn from(obj: SvgPreserveAspectRatio) -> JsValue
fn from(obj: SvgPreserveAspectRatio) -> JsValue
Converts to this type from the input type.
source§impl From<SvgPreserveAspectRatio> for Object
impl From<SvgPreserveAspectRatio> for Object
source§fn from(obj: SvgPreserveAspectRatio) -> Object
fn from(obj: SvgPreserveAspectRatio) -> Object
Converts to this type from the input type.
source§impl FromWasmAbi for SvgPreserveAspectRatio
impl FromWasmAbi for SvgPreserveAspectRatio
source§impl<'a> IntoWasmAbi for &'a SvgPreserveAspectRatio
impl<'a> IntoWasmAbi for &'a SvgPreserveAspectRatio
source§impl IntoWasmAbi for SvgPreserveAspectRatio
impl IntoWasmAbi for SvgPreserveAspectRatio
source§impl JsCast for SvgPreserveAspectRatio
impl JsCast for SvgPreserveAspectRatio
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the type
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
source§impl<'a> OptionIntoWasmAbi for &'a SvgPreserveAspectRatio
impl<'a> OptionIntoWasmAbi for &'a SvgPreserveAspectRatio
source§impl RefFromWasmAbi for SvgPreserveAspectRatio
impl RefFromWasmAbi for SvgPreserveAspectRatio
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to
Self
are recovered from.§type Anchor = ManuallyDrop<SvgPreserveAspectRatio>
type Anchor = ManuallyDrop<SvgPreserveAspectRatio>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SvgPreserveAspectRatio
impl Send for SvgPreserveAspectRatio
impl Sync for SvgPreserveAspectRatio
impl Unpin for SvgPreserveAspectRatio
impl UnwindSafe for SvgPreserveAspectRatio
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more