#[repr(C)]pub 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: Self = _
pub const None: Self = _
https://drafts.csswg.org/css-display/#the-display-properties ::new() inlined so cbindgen can use it
pub const Contents: Self = _
pub const Inline: Self = _
pub const InlineBlock: Self = _
pub const Block: Self = _
pub const Flex: Self = _
pub const InlineFlex: Self = _
pub const Grid: Self = _
pub const InlineGrid: Self = _
pub const Table: Self = _
pub const InlineTable: Self = _
pub const TableCaption: Self = _
pub const TableRowGroup: Self = _
pub const TableHeaderGroup: Self = _
pub const TableColumn: Self = _
pub const TableColumnGroup: Self = _
pub const TableRow: Self = _
pub const TableCell: Self = _
sourceconst fn new(outside: DisplayOutside, inside: DisplayInside) -> Self
const fn new(outside: DisplayOutside, inside: DisplayInside) -> Self
Make a raw display value from
sourcefn from3(
outside: DisplayOutside,
inside: DisplayInside,
list_item: bool,
) -> Self
fn from3( outside: DisplayOutside, inside: DisplayInside, list_item: bool, ) -> Self
Make a display enum value from
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) -> Self
pub fn equivalent_block_display(&self, _is_root_element: bool) -> Self
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<Self>
fn from_i64(n: i64) -> Option<Self>
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<Self>
fn from_u64(n: u64) -> Option<Self>
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<Self>
fn from_isize(n: isize) -> Option<Self>
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<Self>
fn from_i8(n: i8) -> Option<Self>
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<Self>
fn from_i16(n: i16) -> Option<Self>
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<Self>
fn from_i32(n: i32) -> Option<Self>
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<Self>
fn from_i128(n: i128) -> Option<Self>
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<Self>
fn from_usize(n: usize) -> Option<Self>
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<Self>
fn from_u8(n: u8) -> Option<Self>
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<Self>
fn from_u16(n: u16) -> Option<Self>
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<Self>
fn from_u32(n: u32) -> Option<Self>
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<Self>
fn from_u128(n: u128) -> Option<Self>
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>>
fn parse<'i, 't>( _: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Display, ParseError<'i>>
source§impl PartialEq for Display
impl PartialEq for Display
source§impl SpecifiedValueInfo for Display
impl SpecifiedValueInfo for Display
source§fn collect_completion_keywords(f: KeywordsCollectFn<'_>)
fn collect_completion_keywords(f: KeywordsCollectFn<'_>)
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
source§impl ToComputedValue for Display
impl ToComputedValue for Display
§type ComputedValue = Display
type ComputedValue = Display
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Context
.source§impl ToResolvedValue for Display
impl ToResolvedValue for Display
§type ResolvedValue = Display
type ResolvedValue = Display
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
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<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<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