layout_2020::taffy::stylo_taffy::convert::stylo

Type Alias ImplicitGridTracks

Source
pub(crate) type ImplicitGridTracks = GenericImplicitGridTracks<GenericTrackSize<LengthPercentage>>;
Expand description

The computed value of a grid <track-size>+

Aliased Type§

struct ImplicitGridTracks(pub OwnedSlice<GenericTrackSize<LengthPercentage>>);

Fields§

§0: OwnedSlice<GenericTrackSize<LengthPercentage>>

Implementations

Source§

impl<T> GenericImplicitGridTracks<T>
where T: Debug + Default + PartialEq,

Source

pub fn is_initial(&self) -> bool

Returns true if current value is same as its initial value (i.e. auto).

Trait Implementations

Source§

impl<T> Clone for GenericImplicitGridTracks<T>
where T: Clone,

Source§

fn clone(&self) -> GenericImplicitGridTracks<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for GenericImplicitGridTracks<T>
where T: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Default for GenericImplicitGridTracks<T>
where T: Default,

Source§

fn default() -> GenericImplicitGridTracks<T>

Returns the “default value” for a type. Read more
Source§

impl<T> MallocSizeOf for GenericImplicitGridTracks<T>
where T: MallocSizeOf,

Source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
Source§

impl<T> PartialEq for GenericImplicitGridTracks<T>
where T: PartialEq,

Source§

fn eq(&self, other: &GenericImplicitGridTracks<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> SpecifiedValueInfo for GenericImplicitGridTracks<T>

Source§

const SUPPORTED_TYPES: u8

Supported CssTypes by the given value type. Read more
Source§

fn collect_completion_keywords(_f: &mut dyn FnMut(&[&'static str]))

Collect value starting words for the given specified value type. This includes keyword and function names which can appear at the beginning of a value of this type. Read more
Source§

impl<T> ToComputedValue for GenericImplicitGridTracks<T>
where T: ToComputedValue,

Source§

type ComputedValue = GenericImplicitGridTracks<<T as ToComputedValue>::ComputedValue>

The computed value type we’re going to be converted to.
Source§

fn from_computed_value( from: &<GenericImplicitGridTracks<T> as ToComputedValue>::ComputedValue, ) -> GenericImplicitGridTracks<T>

Convert a computed value to specified value form. Read more
Source§

fn to_computed_value( &self, context: &Context<'_>, ) -> <GenericImplicitGridTracks<T> as ToComputedValue>::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.
Source§

impl<T> ToCss for GenericImplicitGridTracks<T>
where T: ToCss,

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result<(), Error>
where W: Write,

Serialize self in CSS syntax, writing to dest.
Source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more
Source§

impl<T> ToResolvedValue for GenericImplicitGridTracks<T>
where T: ToResolvedValue,

Source§

type ResolvedValue = GenericImplicitGridTracks<<T as ToResolvedValue>::ResolvedValue>

The resolved value type we’re going to be converted to.
Source§

fn from_resolved_value( from: <GenericImplicitGridTracks<T> as ToResolvedValue>::ResolvedValue, ) -> GenericImplicitGridTracks<T>

Convert a resolved value to resolved value form.
Source§

fn to_resolved_value( self, context: &Context<'_>, ) -> <GenericImplicitGridTracks<T> as ToResolvedValue>::ResolvedValue

Convert a resolved value to a resolved value.
Source§

impl<T> ToShmem for GenericImplicitGridTracks<T>
where T: ToShmem,

Source§

fn to_shmem( &self, builder: &mut SharedMemoryBuilder, ) -> Result<ManuallyDrop<GenericImplicitGridTracks<T>>, String>

Clones this value into a form suitable for writing into a SharedMemoryBuilder. Read more
Source§

impl<T> StructuralPartialEq for GenericImplicitGridTracks<T>