pub struct MountedFacetError {
pub prefix: String,
pub inner: FacetError,
}Expand description
A facett FacetError mounted by a consumer — the base facett code
namespaced with the consumer’s own mount-prefix (design decision 3). The base
code is untouched; mounted_code() is "<prefix>:<code>".
ⓘ
let e = facett_core::facet_err!(map, 2, "no positions to plot");
let m = e.with_consumer_prefix("korp/cases");
assert_eq!(m.mounted_code(), "korp/cases:facet-map-2");Fields§
§prefix: StringThe consumer’s mount-prefix (e.g. korp/cases).
inner: FacetErrorThe underlying facett error (base code unchanged).
Implementations§
Source§impl MountedFacetError
impl MountedFacetError
Sourcepub fn mounted_code(&self) -> String
pub fn mounted_code(&self) -> String
The namespaced code — "<prefix>:<facet-component-n>".
Trait Implementations§
Source§impl Clone for MountedFacetError
impl Clone for MountedFacetError
Source§fn clone(&self) -> MountedFacetError
fn clone(&self) -> MountedFacetError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MountedFacetError
impl Debug for MountedFacetError
impl Eq for MountedFacetError
Source§impl PartialEq for MountedFacetError
impl PartialEq for MountedFacetError
impl StructuralPartialEq for MountedFacetError
Auto Trait Implementations§
impl Freeze for MountedFacetError
impl RefUnwindSafe for MountedFacetError
impl Send for MountedFacetError
impl Sync for MountedFacetError
impl Unpin for MountedFacetError
impl UnsafeUnpin for MountedFacetError
impl UnwindSafe for MountedFacetError
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more