pub struct MediaQuery { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Media query descriptor.
Implementations§
Source§impl MediaQuery
impl MediaQuery
pub fn new(expressions: Vec<MediaQueryExpression>, active: bool) -> Self
Sourcepub fn expressions(&self) -> &[MediaQueryExpression]
pub fn expressions(&self) -> &[MediaQueryExpression]
Array of media query expressions.
Trait Implementations§
Source§impl Clone for MediaQuery
impl Clone for MediaQuery
Source§fn clone(&self) -> MediaQuery
fn clone(&self) -> MediaQuery
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 MediaQuery
impl Debug for MediaQuery
Source§impl<'de> Deserialize<'de> for MediaQuery
impl<'de> Deserialize<'de> for MediaQuery
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
Auto Trait Implementations§
impl Freeze for MediaQuery
impl RefUnwindSafe for MediaQuery
impl Send for MediaQuery
impl Sync for MediaQuery
impl Unpin for MediaQuery
impl UnwindSafe for MediaQuery
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