Enum layout_2020::taffy::stylo_taffy::convert::stylo::Overflow
source · #[repr(u8)]pub(crate) enum Overflow {
Visible = 0,
Hidden = 1,
Scroll = 2,
Auto = 3,
}
Expand description
The value for the overflow-x
/ overflow-y
properties.
Variants§
Implementations§
source§impl Overflow
impl Overflow
sourcepub fn is_scrollable(&self) -> bool
pub fn is_scrollable(&self) -> bool
Return true if the value will create a scrollable box.
sourcepub fn to_scrollable(&self) -> Overflow
pub fn to_scrollable(&self) -> Overflow
Convert the value to a scrollable value if it’s not already scrollable.
This maps visible
to auto
and clip
to hidden
.
Trait Implementations§
source§impl MallocSizeOf for Overflow
impl MallocSizeOf for Overflow
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
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 Parse for Overflow
impl Parse for Overflow
source§fn parse<'i, 't>(
_: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Overflow, ParseError<'i, StyleParseErrorKind<'i>>>
fn parse<'i, 't>( _: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Overflow, ParseError<'i, StyleParseErrorKind<'i>>>
Parse a value of this type. Read more
source§impl SpecifiedValueInfo for Overflow
impl SpecifiedValueInfo for Overflow
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
source§impl ToComputedValue for Overflow
impl ToComputedValue for Overflow
source§type ComputedValue = Overflow
type ComputedValue = Overflow
The computed value type we’re going to be converted to.
source§fn from_computed_value(
from: &<Overflow as ToComputedValue>::ComputedValue,
) -> Overflow
fn from_computed_value( from: &<Overflow as ToComputedValue>::ComputedValue, ) -> Overflow
Convert a computed value to specified value form. Read more
source§fn to_computed_value(
&self,
context: &Context<'_>,
) -> <Overflow as ToComputedValue>::ComputedValue
fn to_computed_value( &self, context: &Context<'_>, ) -> <Overflow as ToComputedValue>::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§impl ToResolvedValue for Overflow
impl ToResolvedValue for Overflow
source§type ResolvedValue = Overflow
type ResolvedValue = Overflow
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(
from: <Overflow as ToResolvedValue>::ResolvedValue,
) -> Overflow
fn from_resolved_value( from: <Overflow as ToResolvedValue>::ResolvedValue, ) -> Overflow
Convert a resolved value to resolved value form.
source§fn to_resolved_value(
self,
context: &Context<'_>,
) -> <Overflow as ToResolvedValue>::ResolvedValue
fn to_resolved_value( self, context: &Context<'_>, ) -> <Overflow as ToResolvedValue>::ResolvedValue
Convert a resolved value to a resolved value.
source§impl ToShmem for Overflow
impl ToShmem for Overflow
source§fn to_shmem(
&self,
builder: &mut SharedMemoryBuilder,
) -> Result<ManuallyDrop<Overflow>, String>
fn to_shmem( &self, builder: &mut SharedMemoryBuilder, ) -> Result<ManuallyDrop<Overflow>, String>
Clones this value into a form suitable for writing into a
SharedMemoryBuilder. Read more
impl Copy for Overflow
impl Eq for Overflow
impl StructuralPartialEq for Overflow
Auto Trait Implementations§
impl Freeze for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnwindSafe for Overflow
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
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
Compare self to
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
Compare self to
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>
Converts
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>
Converts
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert