pub struct CallerMeta {
pub original_name: String,
pub extra_index: Option<usize>,
pub package: Option<String>,
}Expand description
Metadata stored in the pre-pass caller map value.
For native callers this is always the original name; for extra callers we
also keep the index of the matching ExtraCallerConfig.
Fields§
§original_name: StringOriginal function name (e.g. "useIntlayer" or "useTranslation").
extra_index: Option<usize>Index of the matching extra caller config (None for native callers).
package: Option<String>Package specifier the caller was imported from, e.g. "react-intlayer".
Only recorded for native callers, whose helper family is decided per
package: useIntlayer imported from intlayer keeps the static helper
even when a sibling import from react-intlayer goes dynamic.
Trait Implementations§
Source§impl Clone for CallerMeta
impl Clone for CallerMeta
Auto Trait Implementations§
impl Freeze for CallerMeta
impl RefUnwindSafe for CallerMeta
impl Send for CallerMeta
impl Sync for CallerMeta
impl Unpin for CallerMeta
impl UnsafeUnpin for CallerMeta
impl UnwindSafe for CallerMeta
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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