Struct webrender_api::ClipId
source · pub struct ClipId(pub usize, pub PipelineId);
Expand description
A reference to a clipping node defining how an item is clipped.
Tuple Fields§
§0: usize
§1: PipelineId
Implementations§
source§impl ClipId
impl ClipId
sourcepub fn root(pipeline_id: PipelineId) -> Self
pub fn root(pipeline_id: PipelineId) -> Self
Return the root clip ID - effectively doing no clipping.
sourcepub fn invalid() -> Self
pub fn invalid() -> Self
Return an invalid clip ID - needed in places where we carry one but need to not attempt to use it.
pub fn pipeline_id(&self) -> PipelineId
pub fn is_root(&self) -> bool
pub fn is_valid(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for ClipId
impl<'de> Deserialize<'de> for ClipId
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 PartialEq for ClipId
impl PartialEq for ClipId
impl Copy for ClipId
impl Eq for ClipId
impl StructuralPartialEq for ClipId
Auto Trait Implementations§
impl Freeze for ClipId
impl RefUnwindSafe for ClipId
impl Send for ClipId
impl Sync for ClipId
impl Unpin for ClipId
impl UnwindSafe for ClipId
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