Enum style::values::generics::grid::GridTemplateComponent
[−]
[src]
pub enum GridTemplateComponent<L, I> {
None,
TrackList(TrackList<L, I>),
Subgrid(LineNameList),
}Variants for <grid-template-rows> | <grid-template-columns>
Subgrid deferred to Level 2 spec due to lack of implementation.
But it's implemented in gecko, so we have to as well.
Variants
Nonenone value.
TrackList(TrackList<L, I>)The grid <track-list>
Subgrid(LineNameList)A subgrid <line-name-list>?
Methods
impl<L, I> GridTemplateComponent<L, I>[src]
pub fn track_list_len(&self) -> usize[src]
Returns length of the
impl GridTemplateComponent<LengthOrPercentage, Integer>[src]
pub fn parse_without_none<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>[src]
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Parses a GridTemplateComponent<LengthOrPercentage> except none keyword.
Trait Implementations
impl<L: Clone, I: Clone> Clone for GridTemplateComponent<L, I>[src]
fn clone(&self) -> GridTemplateComponent<L, I>[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<L: Debug, I: Debug> Debug for GridTemplateComponent<L, I>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<L, I> MallocSizeOf for GridTemplateComponent<L, I> where
L: MallocSizeOf,
I: MallocSizeOf, [src]
L: MallocSizeOf,
I: MallocSizeOf,
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
impl<L: PartialEq, I: PartialEq> PartialEq for GridTemplateComponent<L, I>[src]
fn eq(&self, __arg_0: &GridTemplateComponent<L, I>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &GridTemplateComponent<L, I>) -> bool[src]
This method tests for !=.
impl<L, I> ToComputedValue for GridTemplateComponent<L, I> where
TrackList<L, I>: ToComputedValue<ComputedValue = TrackList<<L as ToComputedValue>::ComputedValue, <I as ToComputedValue>::ComputedValue>>,
I: ToComputedValue,
L: ToComputedValue, [src]
TrackList<L, I>: ToComputedValue<ComputedValue = TrackList<<L as ToComputedValue>::ComputedValue, <I as ToComputedValue>::ComputedValue>>,
I: ToComputedValue,
L: ToComputedValue,
type ComputedValue = GridTemplateComponent<<L as ToComputedValue>::ComputedValue, <I as ToComputedValue>::ComputedValue>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue[src]
Convert a specified value to a computed value, using itself and the data inside the Context. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self[src]
Convert a computed value to specified value form. Read more
impl<L, I> ToCss for GridTemplateComponent<L, I> where
TrackList<L, I>: ToCss, [src]
TrackList<L, I>: ToCss,
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write, [src]
W: Write,
Serialize self in CSS syntax, writing to dest.
fn to_css_string(&self) -> String[src]
Serialize self in CSS syntax and return a string. Read more
impl Parse for GridTemplateComponent<LengthOrPercentage, Integer>[src]
fn parse<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>[src]
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more