#[repr(u8)]pub enum ScrollBoundaryMode {
Inherit = 0,
Clamp = 1,
Bounce = 2,
}Expand description
Per-container boundary resistance override for ScrollPhysics.
Variants§
Inherit = 0
Inherit the surface physics engine’s boundary behavior (and Scroll::bounce).
Clamp = 1
Hard clamp at [0..=max] with zero rubber-band overscroll.
Bounce = 2
Enable rubber-band overscroll bounce (still subject to OverscrollBehavior::None).
Implementations§
Source§impl ScrollBoundaryMode
impl ScrollBoundaryMode
pub const COUNT: usize = 3
pub const BITS: u8 = 2
pub const ALL: &'static [Self]
Sourcepub const VALUE_SET: ValueSetDesc
pub const VALUE_SET: ValueSetDesc
Named variants mirrored to hosts as NV_<TYPE>_<VARIANT>.
pub const fn to_word(self) -> u32
pub const fn try_from_word(__nv_bits: u32) -> Option<Self>
pub const fn from_word(__nv_bits: u32) -> Self
pub const fn opt_to_word(__nv_v: Option<Self>) -> u32
Trait Implementations§
Source§impl Clone for ScrollBoundaryMode
impl Clone for ScrollBoundaryMode
impl Copy for ScrollBoundaryMode
Source§impl Debug for ScrollBoundaryMode
impl Debug for ScrollBoundaryMode
Source§impl Default for ScrollBoundaryMode
impl Default for ScrollBoundaryMode
impl Eq for ScrollBoundaryMode
Source§impl Hash for ScrollBoundaryMode
impl Hash for ScrollBoundaryMode
Source§impl OptWord for ScrollBoundaryMode
impl OptWord for ScrollBoundaryMode
const OPT_BITS: u8 = 2
const OPT_KIND: FieldKind = ::nativeview_store::__private::FieldKind::Enum
const OPT_ENCODING: OptEncoding = ::nativeview_store::__private::OptEncoding::PlusOne
Source§const VALUES: Option<&'static ValueSetDesc>
const VALUES: Option<&'static ValueSetDesc>
Named values of the inner type (see
WordValue::VALUES).fn opt_to_bits(__nv_v: Option<Self>) -> u32
fn opt_from_bits(__nv_bits: u32) -> Option<Self>
Source§impl PartialEq for ScrollBoundaryMode
impl PartialEq for ScrollBoundaryMode
impl StructuralPartialEq for ScrollBoundaryMode
Source§impl WordValue for ScrollBoundaryMode
impl WordValue for ScrollBoundaryMode
const BITS: u8 = 2
const KIND: FieldKind = ::nativeview_store::__private::FieldKind::Enum
Source§const VALUES: Option<&'static ValueSetDesc>
const VALUES: Option<&'static ValueSetDesc>
Named values (
WordEnum variants, word_flags! bits), mirrored to hosts as
NV_<TYPE>_<VALUE> by codegen so foreign code never hand-copies them.fn to_bits(self) -> u32
fn from_bits(__nv_bits: u32) -> Self
Source§const OPT_ENCODING: OptEncoding = OptEncoding::Required
const OPT_ENCODING: OptEncoding = OptEncoding::Required
Optionality & bit-encoding discriminator hashed into
TableDesc::schema_hash.Source§fn to_masked_bits(self, _bit_width: u32) -> u32
fn to_masked_bits(self, _bit_width: u32) -> u32
Source§fn from_masked_bits(bits: u32, _bit_width: u32) -> Self
fn from_masked_bits(bits: u32, _bit_width: u32) -> Self
Decodes
bits from a field of bit_width (1..=32) bits (sign-extending narrowed signed
integers).Auto Trait Implementations§
impl Forget for ScrollBoundaryMode
impl Freeze for ScrollBoundaryMode
impl Move for ScrollBoundaryMode
impl RefUnwindSafe for ScrollBoundaryMode
impl Send for ScrollBoundaryMode
impl Sync for ScrollBoundaryMode
impl Unpin for ScrollBoundaryMode
impl UnsafeUnpin for ScrollBoundaryMode
impl UnwindSafe for ScrollBoundaryMode
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§impl<T> ScalarField for Twhere
T: WordValue,
impl<T> ScalarField for Twhere
T: WordValue,
fn read_row( row: &[u32], word: usize, shift: u32, mask: u32, _val_word: usize, ) -> T
fn write_row( self, writer: &mut RowWriter<'_>, word: usize, shift: u32, mask: u32, _val_word: usize, )
Source§fn encode_patch_ops(
self,
word: usize,
shift: u32,
mask: u32,
_val_word: usize,
emit: &mut dyn FnMut(usize, u32, u32),
)
fn encode_patch_ops( self, word: usize, shift: u32, mask: u32, _val_word: usize, emit: &mut dyn FnMut(usize, u32, u32), )
Emits
(word_idx, clear_mask, set_bits) masked patch operations for crate::RowPatch.fn read_ref( row: RowRef<'_>, word: usize, shift: u32, mask: u32, val_word: usize, ) -> Self
Source§impl<T> TableField for Twhere
T: WordValue,
impl<T> TableField for Twhere
T: WordValue,
const KIND: FieldKind = T::KIND
Source§const OPT_ENCODING: OptEncoding = T::OPT_ENCODING
const OPT_ENCODING: OptEncoding = T::OPT_ENCODING
Optionality & bit-encoding discriminator hashed into
TableDesc::schema_hash.Source§const BITS: u8 = T::BITS
const BITS: u8 = T::BITS
Bits occupied in its primary word (
1..=32 for scalar, 1 for wide Option<T>, 64 for 64-bit/Str).Source§const PACK_KIND: PackKind = PackKind::Scalar
const PACK_KIND: PackKind = PackKind::Scalar
Word packing layout shape (
Scalar, WideOpt, Wide64, Str, Resource).Source§const VALUES: Option<&'static ValueSetDesc> = T::VALUES
const VALUES: Option<&'static ValueSetDesc> = T::VALUES
Named values the field holds (see
WordValue::VALUES).