pub struct ExecutionCount(pub usize);
Expand description
Represents a monotonically increasing counter for tracking the number of code executions
in a Jupyter session. This count is maintained across all executions, including those in
notebook cells and via terminal execute_request
s.
Tuple Fields§
§0: usize
Implementations§
Source§impl ExecutionCount
impl ExecutionCount
Trait Implementations§
Source§impl Clone for ExecutionCount
impl Clone for ExecutionCount
Source§fn clone(&self) -> ExecutionCount
fn clone(&self) -> ExecutionCount
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 ExecutionCount
impl Debug for ExecutionCount
Source§impl Default for ExecutionCount
impl Default for ExecutionCount
Source§fn default() -> ExecutionCount
fn default() -> ExecutionCount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionCount
impl<'de> Deserialize<'de> for ExecutionCount
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 Display for ExecutionCount
impl Display for ExecutionCount
Source§impl From<ExecutionCount> for Value
impl From<ExecutionCount> for Value
Source§fn from(count: ExecutionCount) -> Self
fn from(count: ExecutionCount) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionCount> for usize
impl From<ExecutionCount> for usize
Source§fn from(count: ExecutionCount) -> Self
fn from(count: ExecutionCount) -> Self
Converts to this type from the input type.
Source§impl From<usize> for ExecutionCount
impl From<usize> for ExecutionCount
Source§impl Ord for ExecutionCount
impl Ord for ExecutionCount
Source§fn cmp(&self, other: &ExecutionCount) -> Ordering
fn cmp(&self, other: &ExecutionCount) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExecutionCount
impl PartialEq for ExecutionCount
Source§impl PartialOrd for ExecutionCount
impl PartialOrd for ExecutionCount
Source§impl Serialize for ExecutionCount
impl Serialize for ExecutionCount
impl Copy for ExecutionCount
impl Eq for ExecutionCount
impl StructuralPartialEq for ExecutionCount
Auto Trait Implementations§
impl Freeze for ExecutionCount
impl RefUnwindSafe for ExecutionCount
impl Send for ExecutionCount
impl Sync for ExecutionCount
impl Unpin for ExecutionCount
impl UnwindSafe for ExecutionCount
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