[−][src]Struct verification::CanonBlock
Blocks whose parents are known to be in the chain
Methods
impl<'a> CanonBlock<'a>
[src]
[−]
impl<'a> CanonBlock<'a>
pub fn new(block: &'a IndexedBlock) -> Self
[src]
pub fn new(block: &'a IndexedBlock) -> Self
pub fn hash<'b>(&'b self) -> &'a H256 where
'a: 'b,
[src]
pub fn hash<'b>(&'b self) -> &'a H256 where
'a: 'b,
pub fn raw<'b>(&'b self) -> &'a IndexedBlock where
'a: 'b,
[src]
pub fn raw<'b>(&'b self) -> &'a IndexedBlock where
'a: 'b,
pub fn header<'b>(&'b self) -> CanonHeader<'a> where
'a: 'b,
[src]
pub fn header<'b>(&'b self) -> CanonHeader<'a> where
'a: 'b,
pub fn transactions<'b>(&'b self) -> Vec<CanonTransaction<'a>> where
'a: 'b,
[src]
pub fn transactions<'b>(&'b self) -> Vec<CanonTransaction<'a>> where
'a: 'b,
Methods from Deref<Target = IndexedBlock>
pub fn hash(&self) -> &H256
[src]
pub fn hash(&self) -> &H256
pub fn size(&self) -> usize
[src]
pub fn size(&self) -> usize
pub fn size_with_witness(&self) -> usize
[src]
pub fn size_with_witness(&self) -> usize
pub fn merkle_root(&self) -> H256
[src]
pub fn merkle_root(&self) -> H256
pub fn witness_merkle_root(&self) -> H256
[src]
pub fn witness_merkle_root(&self) -> H256
pub fn is_final(&self, height: u32) -> bool
[src]
pub fn is_final(&self, height: u32) -> bool
Trait Implementations
impl<'a> Clone for CanonBlock<'a>
[src]
[+]
impl<'a> Clone for CanonBlock<'a>
impl<'a> Copy for CanonBlock<'a>
[src]
impl<'a> Copy for CanonBlock<'a>
impl<'a> Deref for CanonBlock<'a>
[src]
[+]
impl<'a> Deref for CanonBlock<'a>
Auto Trait Implementations
impl<'a> Send for CanonBlock<'a>
impl<'a> Send for CanonBlock<'a>
impl<'a> Sync for CanonBlock<'a>
impl<'a> Sync for CanonBlock<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
[−]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
[−]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
[−]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
[−]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
[−]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
[−]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
[−]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
[−]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T
[src]
[−]
ⓘImportant traits for &'a mut R
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
[−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
[−]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
[−]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T
[src]
[−]
ⓘImportant traits for &'a mut R
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
[−]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
[−]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Erased for T
impl<T> Erased for T