pub struct MediaQuery {
pub media_type: String,
pub conditions: Vec<String>,
}Expand description
✅ 新增:媒体查询条件
Fields§
§media_type: String媒体类型:screen, print, all 等
conditions: Vec<String>条件表达式:(min-width: 768px) 等
Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MediaQuery
impl RefUnwindSafe for MediaQuery
impl Send for MediaQuery
impl Sync for MediaQuery
impl Unpin for MediaQuery
impl UnsafeUnpin 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