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
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
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 PartialOrd for Height
impl PartialOrd for Height
impl Copy for Height
impl Eq for Height
impl StructuralPartialEq for Height
Auto Trait Implementations§
impl Freeze for Height
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