Trait btlib::Principaled

source ·
pub trait Principaled {
    // Required method
    fn principal_of_kind(&self, kind: HashKind) -> Principal;

    // Provided method
    fn principal(&self) -> Principal { ... }
}
Expand description

Trait for types which are owned by a Principal.

Required Methods§

source

fn principal_of_kind(&self, kind: HashKind) -> Principal

Returns the Principal that owns self, using the given hash algorithm.

Provided Methods§

source

fn principal(&self) -> Principal

Returns the Principal that owns self, using the default hash algorithm.

Implementors§