diff --git a/libimagentrylink/src/internal.rs b/libimagentrylink/src/internal.rs index 299da00d..1ab7c234 100644 --- a/libimagentrylink/src/internal.rs +++ b/libimagentrylink/src/internal.rs @@ -51,6 +51,15 @@ impl Link { } } + pub fn to_str(&self) -> Result { + match *self { + Link::Id { ref link } => link.to_str(), + Link::Annotated { ref link, .. } => link.to_str(), + } + .map_err_into(LEK::StoreReadError) + } + + fn eq_store_id(&self, id: &StoreId) -> bool { match self { &Link::Id { link: ref s } => s.eq(id),