pub struct PaneId(/* private fields */);Expand description
Stable identifier for pane nodes.
0 is reserved/invalid so IDs are always non-zero.
Implementations§
Source§impl PaneId
impl PaneId
Sourcepub fn new(raw: u64) -> Result<Self, PaneModelError>
pub fn new(raw: u64) -> Result<Self, PaneModelError>
Create a new pane ID, rejecting 0.
Sourcepub fn checked_next(self) -> Result<Self, PaneModelError>
pub fn checked_next(self) -> Result<Self, PaneModelError>
Return the next ID, or an error on overflow.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PaneId
impl<'de> Deserialize<'de> for PaneId
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 Ord for PaneId
impl Ord for PaneId
Source§impl PartialOrd for PaneId
impl PartialOrd for PaneId
impl Copy for PaneId
impl Eq for PaneId
impl StructuralPartialEq for PaneId
Auto Trait Implementations§
impl Freeze for PaneId
impl RefUnwindSafe for PaneId
impl Send for PaneId
impl Sync for PaneId
impl Unpin for PaneId
impl UnwindSafe for PaneId
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