pub struct GlobalCx<'gcx> {
pub interner: DroplessInterner,
/* private fields */
}Fields§
§interner: DroplessInternerImplementations§
Source§impl<'gcx> GlobalCx<'gcx>
impl<'gcx> GlobalCx<'gcx>
pub fn configure(&self, config: Config)
pub fn get_config(&self) -> MutexGuard<'_, Config>
Trait Implementations§
Source§impl<'gcx> Intern for GlobalCx<'gcx>
impl<'gcx> Intern for GlobalCx<'gcx>
type InternedStr<'a> = Interned<'a, str> where Self: 'a
fn intern_formatted_str<T: Display + ?Sized>( &self, value: &T, upper_size: usize, ) -> StdResult<Self::InternedStr<'_>, Error>
fn intern_str(&self, text: &str) -> Self::InternedStr<'_>
Auto Trait Implementations§
impl<'gcx> !Freeze for GlobalCx<'gcx>
impl<'gcx> !RefUnwindSafe for GlobalCx<'gcx>
impl<'gcx> !Send for GlobalCx<'gcx>
impl<'gcx> !Sync for GlobalCx<'gcx>
impl<'gcx> Unpin for GlobalCx<'gcx>
impl<'gcx> UnsafeUnpin for GlobalCx<'gcx>
impl<'gcx> !UnwindSafe for GlobalCx<'gcx>
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> 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