pub trait LinkTypesHelper<const LEN: usize>: EnumLen where
Self: Into<LocalZomeTypeId>,
Self: Debug + Clone + Copy + Sized + PartialEq + PartialOrd + 'static, {
fn iter() -> IntoIter<Self, LEN>;
fn range(
range: impl RangeBounds<Self> + 'static + Debug
) -> Box<dyn FnOnce() -> Result<LinkTypeRanges, WasmError>> { ... }
}
Expand description
A helper trait for creating LinkTypeRanges
that match the local zome’s
type scope.
This is implemented by the hdk_link_types
proc_macro.
Required Methods
Provided Methods
fn range(
range: impl RangeBounds<Self> + 'static + Debug
) -> Box<dyn FnOnce() -> Result<LinkTypeRanges, WasmError>>
fn range(
range: impl RangeBounds<Self> + 'static + Debug
) -> Box<dyn FnOnce() -> Result<LinkTypeRanges, WasmError>>
Create a LinkTypeRanges
from a range of this traits implementor.