pub trait VtxoRef<P: Policy = VtxoPolicy> {
// Required methods
fn vtxo_id(&self) -> VtxoId;
fn into_full_vtxo(self) -> Option<Vtxo<Full, P>>
where Self: Sized;
// Provided methods
fn as_bare_vtxo(&self) -> Option<Cow<'_, Vtxo<Bare, P>>> { ... }
fn as_full_vtxo(&self) -> Option<&Vtxo<Full, P>> { ... }
}Expand description
Implemented on anything that is kinda a Vtxo