Struct webrender_api::display_item::ExternalScrollId
source · #[repr(C)]pub struct ExternalScrollId(pub u64, pub PipelineId);
Expand description
An external identifier that uniquely identifies a scroll frame independent of its ClipId, which may change from frame to frame. This should be unique within a pipeline. WebRender makes no attempt to ensure uniqueness. The zero value is reserved for use by the root scroll node of every pipeline, which always has an external id.
When setting display lists with the preserve_frame_state
this id is used to preserve scroll
offsets between different sets of SpatialNodes which are ScrollFrames.
Tuple Fields§
§0: u64
§1: PipelineId
Implementations§
source§impl ExternalScrollId
impl ExternalScrollId
pub fn pipeline_id(&self) -> PipelineId
pub fn is_root(&self) -> bool
Trait Implementations§
source§impl Clone for ExternalScrollId
impl Clone for ExternalScrollId
source§fn clone(&self) -> ExternalScrollId
fn clone(&self) -> ExternalScrollId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExternalScrollId
impl Debug for ExternalScrollId
source§impl Default for ExternalScrollId
impl Default for ExternalScrollId
source§fn default() -> ExternalScrollId
fn default() -> ExternalScrollId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExternalScrollId
impl<'de> Deserialize<'de> for ExternalScrollId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ExternalScrollId
impl Hash for ExternalScrollId
source§impl PartialEq for ExternalScrollId
impl PartialEq for ExternalScrollId
source§fn eq(&self, other: &ExternalScrollId) -> bool
fn eq(&self, other: &ExternalScrollId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for ExternalScrollId
impl Peek for ExternalScrollId
source§impl Poke for ExternalScrollId
impl Poke for ExternalScrollId
source§impl Serialize for ExternalScrollId
impl Serialize for ExternalScrollId
impl Copy for ExternalScrollId
impl Eq for ExternalScrollId
impl StructuralPartialEq for ExternalScrollId
Auto Trait Implementations§
impl Freeze for ExternalScrollId
impl RefUnwindSafe for ExternalScrollId
impl Send for ExternalScrollId
impl Sync for ExternalScrollId
impl Unpin for ExternalScrollId
impl UnwindSafe for ExternalScrollId
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