pub struct Height(/* private fields */);
Expand description
A relative lock time lock-by-blockheight value.
Implementations§
source§impl Height
impl Height
sourcepub const MIN: Self = Self::ZERO
pub const MIN: Self = Self::ZERO
The minimum relative block height (0), can be included in any block.
sourcepub const fn min_value() -> Self
👎Deprecated since 0.31.0: Use Self::MIN instead
pub const fn min_value() -> Self
The minimum relative block height (0), can be included in any block.
This is provided for consistency with Rust 1.41.1, newer code should use Height::MIN
.
sourcepub const fn max_value() -> Self
👎Deprecated since 0.31.0: Use Self::MAX instead
pub const fn max_value() -> Self
The maximum relative block height.
This is provided for consistency with Rust 1.41.1, newer code should use Height::MAX
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Height
impl<'de> Deserialize<'de> for Height
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 Height
impl Ord for Height
source§impl PartialEq<Height> for Height
impl PartialEq<Height> for Height
source§impl PartialOrd<Height> for Height
impl PartialOrd<Height> for Height
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Height
impl Eq for Height
impl StructuralEq for Height
impl StructuralPartialEq for Height
Auto Trait Implementations§
impl RefUnwindSafe for Height
impl Send for Height
impl Sync for Height
impl Unpin for Height
impl UnwindSafe for Height
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