pub struct Universe { /* private fields */ }
Expand description
Universe sets up the universe scope, the unsafe package and all the builtin types and functions
Implementations§
source§impl Universe
impl Universe
pub fn new(objs: &mut TCObjects) -> Universe
pub fn scope(&self) -> &ScopeKey
pub fn unsafe_pkg(&self) -> &PackageKey
pub fn types(&self) -> &Map<BasicType, TypeKey>
pub fn builtins(&self) -> &Map<Builtin, BuiltinInfo>
pub fn iota(&self) -> &ObjKey
pub fn byte(&self) -> &TypeKey
pub fn rune(&self) -> &TypeKey
pub fn slice_of_bytes(&self) -> &TypeKey
pub fn no_value_tuple(&self) -> &TypeKey
pub fn indir(&self) -> &ObjKey
pub fn guard_sig(&self) -> &TypeKey
Auto Trait Implementations§
impl RefUnwindSafe for Universe
impl Send for Universe
impl Sync for Universe
impl Unpin for Universe
impl UnwindSafe for Universe
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