Struct style::media_queries::MediaType
[−]
[src]
pub struct MediaType(pub CustomIdent);
Methods
impl MediaType[src]
pub fn screen() -> Self[src]
The screen media type.
pub fn print() -> Self[src]
The print media type.
Trait Implementations
impl Clone for MediaType[src]
fn clone(&self) -> MediaType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for MediaType[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for MediaType[src]
impl PartialEq for MediaType[src]
fn eq(&self, __arg_0: &MediaType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &MediaType) -> bool[src]
This method tests for !=.
impl MallocSizeOf for MediaType[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more