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) -> &HashMap<BasicType, TypeKey>
pub fn builtins(&self) -> &HashMap<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 Freeze for Universe
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