Enum parcel_css::properties::flex::FlexLinePack
source · [−]pub enum FlexLinePack {
Start,
End,
Center,
Justify,
Distribute,
Stretch,
}
Expand description
A value for the legacy (prefixed) flex-line-pack property.
Equivalent to the align-content
property in the standard syntax.
Variants
Start
Content is aligned to the start.
End
Content is aligned to the end.
Center
Content is centered.
Justify
Content is justified.
Distribute
Content is distributed evenly, with half size spaces on either end.
Stretch
Content is stretched.
Trait Implementations
sourceimpl Clone for FlexLinePack
impl Clone for FlexLinePack
sourcefn clone(&self) -> FlexLinePack
fn clone(&self) -> FlexLinePack
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlexLinePack
impl Debug for FlexLinePack
sourceimpl<'i> Parse<'i> for FlexLinePack
impl<'i> Parse<'i> for FlexLinePack
sourcefn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
Parse a value of this type using an existing parser.
sourcefn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
Parse a value from a string. Read more
sourceimpl PartialEq<FlexLinePack> for FlexLinePack
impl PartialEq<FlexLinePack> for FlexLinePack
sourcefn eq(&self, other: &FlexLinePack) -> bool
fn eq(&self, other: &FlexLinePack) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl ToCss for FlexLinePack
impl ToCss for FlexLinePack
sourcefn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError> where
W: Write,
fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError> where
W: Write,
Serialize self
in CSS syntax, writing to dest
.
sourcefn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
Serialize self
in CSS syntax and return a string. Read more
impl Copy for FlexLinePack
impl StructuralPartialEq for FlexLinePack
Auto Trait Implementations
impl RefUnwindSafe for FlexLinePack
impl Send for FlexLinePack
impl Sync for FlexLinePack
impl Unpin for FlexLinePack
impl UnwindSafe for FlexLinePack
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer