pub struct CommonTypes<'gcx> {
pub unit: Ty<'gcx>,
pub bool: Ty<'gcx>,
pub address: Ty<'gcx>,
pub address_payable: Ty<'gcx>,
pub string: Ty<'gcx>,
pub string_ref: EachDataLoc<Ty<'gcx>>,
pub bytes: Ty<'gcx>,
pub bytes_ref: EachDataLoc<Ty<'gcx>>,
/* private fields */
}Expand description
Pre-interned types.
Fields§
§unit: Ty<'gcx>Empty tuple (), AKA unit, void.
bool: Ty<'gcx>bool.
address: Ty<'gcx>address.
address_payable: Ty<'gcx>address payable.
string: Ty<'gcx>string.
string_ref: EachDataLoc<Ty<'gcx>>string references.
bytes: Ty<'gcx>bytes.
bytes_ref: EachDataLoc<Ty<'gcx>>bytes references.
Implementations§
Source§impl<'gcx> CommonTypes<'gcx>
impl<'gcx> CommonTypes<'gcx>
Sourcepub fn fixed_bytes(&self, bytes: u8) -> Ty<'gcx>
pub fn fixed_bytes(&self, bytes: u8) -> Ty<'gcx>
bytes<bytes>.
Sourcepub fn fixed_bytes_(&self, size: TypeSize) -> Ty<'gcx>
pub fn fixed_bytes_(&self, size: TypeSize) -> Ty<'gcx>
bytes<size>.
Auto Trait Implementations§
impl<'gcx> Freeze for CommonTypes<'gcx>
impl<'gcx> RefUnwindSafe for CommonTypes<'gcx>
impl<'gcx> Send for CommonTypes<'gcx>
impl<'gcx> Sync for CommonTypes<'gcx>
impl<'gcx> Unpin for CommonTypes<'gcx>
impl<'gcx> UnwindSafe for CommonTypes<'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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
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