pub enum TypeLayoutBuilder {}Implementations
sourceimpl TypeLayoutBuilder
impl TypeLayoutBuilder
sourcepub fn build_with_types(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
pub fn build_with_types(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
Construct a WithTypes TypeLayout with fields from t.
Panics if resolver cannot resolve a module whose types are referenced directly or
transitively by t
sourcepub fn build_with_fields(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
pub fn build_with_fields(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
Construct a WithFields TypeLayout with fields from t.
Panics if resolver cannot resolve a module whose types are referenced directly or
transitively by t.
sourcepub fn build_runtime(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
pub fn build_runtime(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
Construct a runtime TypeLayout from t.
Panics if resolver cannot resolve a module whose types are referenced directly or
transitively by t.
Auto Trait Implementations
impl RefUnwindSafe for TypeLayoutBuilder
impl Send for TypeLayoutBuilder
impl Sync for TypeLayoutBuilder
impl Unpin for TypeLayoutBuilder
impl UnwindSafe for TypeLayoutBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more