Struct layout_2020::taffy::stylo_taffy::convert::stylo::Display
source · #[repr(C)]pub(crate) struct Display(u16);
Tuple Fields§
§0: u16
Implementations§
source§impl Display
impl Display
Gecko-only impl block for Display (shared stuff later in this file):
pub const LIST_ITEM_MASK: u16 = 32_768u16
pub const OUTSIDE_MASK: u16 = 32_512u16
pub const INSIDE_MASK: u16 = 255u16
pub const OUTSIDE_SHIFT: u16 = 8u16
sourcepub const None: Display = _
pub const None: Display = _
https://drafts.csswg.org/css-display/#the-display-properties ::new() inlined so cbindgen can use it
pub const Contents: Display = _
pub const Inline: Display = _
pub const InlineBlock: Display = _
pub const Block: Display = _
pub const Flex: Display = _
pub const InlineFlex: Display = _
pub const Grid: Display = _
pub const InlineGrid: Display = _
pub const Table: Display = _
pub const InlineTable: Display = _
pub const TableCaption: Display = _
pub const TableRowGroup: Display = _
pub const TableHeaderGroup: Display = _
pub const TableColumn: Display = _
pub const TableColumnGroup: Display = _
pub const TableRow: Display = _
pub const TableCell: Display = _
sourcepub fn inside(&self) -> DisplayInside
pub fn inside(&self) -> DisplayInside
Accessor for the
sourcepub fn outside(&self) -> DisplayOutside
pub fn outside(&self) -> DisplayOutside
Accessor for the
sourcepub fn is_inline_flow(&self) -> bool
pub fn is_inline_flow(&self) -> bool
Whether this is display: inline
(or inline list-item
).
sourcepub const fn is_list_item(&self) -> bool
pub const fn is_list_item(&self) -> bool
Returns whether this display
value is some kind of list-item.
sourcepub fn is_ruby_level_container(&self) -> bool
pub fn is_ruby_level_container(&self) -> bool
Returns whether this display
value is a ruby level container.
sourcepub fn is_ruby_type(&self) -> bool
pub fn is_ruby_type(&self) -> bool
Returns whether this display
value is one of the types for ruby.
source§impl Display
impl Display
Shared Display impl for both Gecko and Servo.
sourcepub fn is_item_container(&self) -> bool
pub fn is_item_container(&self) -> bool
Returns whether this display
value is the display of a flex or
grid container.
This is used to implement various style fixups.
sourcepub fn is_line_participant(&self) -> bool
pub fn is_line_participant(&self) -> bool
Returns whether an element with this display type is a line participant, which means it may lay its children on the same line as itself.
sourcepub fn equivalent_block_display(&self, _is_root_element: bool) -> Display
pub fn equivalent_block_display(&self, _is_root_element: bool) -> Display
Convert this display into an equivalent block display.
Also used for :root style adjustments.
sourcepub fn is_contents(&self) -> bool
pub fn is_contents(&self) -> bool
Returns true if the value is Contents
Trait Implementations§
source§impl FromPrimitive for Display
impl FromPrimitive for Display
source§fn from_i64(n: i64) -> Option<Display>
fn from_i64(n: i64) -> Option<Display>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Display>
fn from_u64(n: u64) -> Option<Display>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Display>
fn from_isize(n: isize) -> Option<Display>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Display>
fn from_i8(n: i8) -> Option<Display>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Display>
fn from_i16(n: i16) -> Option<Display>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Display>
fn from_i32(n: i32) -> Option<Display>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Display>
fn from_i128(n: i128) -> Option<Display>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Display>
fn from_usize(n: usize) -> Option<Display>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Display>
fn from_u8(n: u8) -> Option<Display>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Display>
fn from_u16(n: u16) -> Option<Display>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Display>
fn from_u32(n: u32) -> Option<Display>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Display>
fn from_u128(n: u128) -> Option<Display>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl MallocSizeOf for Display
impl MallocSizeOf for Display
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl Parse for Display
impl Parse for Display
source§fn parse<'i, 't>(
_: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Display, ParseError<'i, StyleParseErrorKind<'i>>>
fn parse<'i, 't>( _: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Display, ParseError<'i, StyleParseErrorKind<'i>>>
source§impl SpecifiedValueInfo for Display
impl SpecifiedValueInfo for Display
source§fn collect_completion_keywords(f: &mut dyn FnMut(&[&'static str]))
fn collect_completion_keywords(f: &mut dyn FnMut(&[&'static str]))
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
source§impl ToComputedValue for Display
impl ToComputedValue for Display
source§type ComputedValue = Display
type ComputedValue = Display
source§fn from_computed_value(
from: &<Display as ToComputedValue>::ComputedValue,
) -> Display
fn from_computed_value( from: &<Display as ToComputedValue>::ComputedValue, ) -> Display
source§fn to_computed_value(
&self,
context: &Context<'_>,
) -> <Display as ToComputedValue>::ComputedValue
fn to_computed_value( &self, context: &Context<'_>, ) -> <Display as ToComputedValue>::ComputedValue
Context
.source§impl ToResolvedValue for Display
impl ToResolvedValue for Display
source§type ResolvedValue = Display
type ResolvedValue = Display
source§fn from_resolved_value(
from: <Display as ToResolvedValue>::ResolvedValue,
) -> Display
fn from_resolved_value( from: <Display as ToResolvedValue>::ResolvedValue, ) -> Display
source§fn to_resolved_value(
self,
context: &Context<'_>,
) -> <Display as ToResolvedValue>::ResolvedValue
fn to_resolved_value( self, context: &Context<'_>, ) -> <Display as ToResolvedValue>::ResolvedValue
source§impl ToShmem for Display
impl ToShmem for Display
source§fn to_shmem(
&self,
builder: &mut SharedMemoryBuilder,
) -> Result<ManuallyDrop<Display>, String>
fn to_shmem( &self, builder: &mut SharedMemoryBuilder, ) -> Result<ManuallyDrop<Display>, String>
impl Copy for Display
impl Eq for Display
impl StructuralPartialEq for Display
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more