IntoBlockIdentifier

Trait IntoBlockIdentifier 

Source
pub trait IntoBlockIdentifier {
    // Required method
    fn into_block_identifier(self) -> BlockIdentifier;
}
Expand description

A helper trait that is implemented by types that can be cheaply converted to a BlockIdentifier. This is esentially Into<BlockIdentifier> but orphan rules prevent using that exactly.

This trait makes it convenient to use block hashes as input to functions that take a block identifier.

Required Methods§

Implementations on Foreign Types§

Source§

impl<X: IntoBlockIdentifier + Copy> IntoBlockIdentifier for &X

Implementors§