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§
sourcefn principal_of_kind(&self, kind: HashKind) -> Principal
fn principal_of_kind(&self, kind: HashKind) -> Principal
Returns the Principal
that owns self
, using the given hash algorithm.