pub struct CoreLibrary { /* private fields */ }Implementations§
Source§impl CoreLibrary
impl CoreLibrary
Sourcepub fn value_or_type_by_id(&self, id: CoreLibId) -> &Value
pub fn value_or_type_by_id(&self, id: CoreLibId) -> &Value
Resolves a pointer address to a core library value if it exists, otherwise returns an error.
Sourcepub fn map(&self) -> &Map
pub fn map(&self) -> &Map
Gets the core library map, which contains all core library values and types indexed by their id as strings.
Sourcepub fn value_by_id(&self, id: &CoreLibValueId) -> &Value
pub fn value_by_id(&self, id: &CoreLibValueId) -> &Value
Resolve a core library value by its id.
Sourcepub fn type_by_id(&self, id: &CoreLibTypeId) -> &Value
pub fn type_by_id(&self, id: &CoreLibTypeId) -> &Value
Resolve a core library type by its id and return it as a value.
Trait Implementations§
Source§impl Debug for CoreLibrary
impl Debug for CoreLibrary
Auto Trait Implementations§
impl !RefUnwindSafe for CoreLibrary
impl !Send for CoreLibrary
impl !Sync for CoreLibrary
impl !UnwindSafe for CoreLibrary
impl Forget for CoreLibrary
impl Freeze for CoreLibrary
impl Move for CoreLibrary
impl Unpin for CoreLibrary
impl UnsafeUnpin for CoreLibrary
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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type