Struct move_resource_viewer::MoveValueAnnotator
source · [−]pub struct MoveValueAnnotator<'a, T: ?Sized> { /* private fields */ }Implementations
sourceimpl<'a, T: MoveResolver + ?Sized> MoveValueAnnotator<'a, T>
impl<'a, T: MoveResolver + ?Sized> MoveValueAnnotator<'a, T>
pub fn new(view: &'a T) -> Self
pub fn get_resource_bytes(
&self,
addr: &AccountAddress,
tag: &StructTag
) -> Option<Vec<u8>>
pub fn get_module(&self, module: &ModuleId) -> Result<Rc<CompiledModule>>
pub fn get_type_layout_runtime(
&self,
type_tag: &TypeTag
) -> Result<MoveTypeLayout>
pub fn get_type_layout_with_fields(
&self,
type_tag: &TypeTag
) -> Result<MoveTypeLayout>
pub fn get_type_layout_with_types(
&self,
type_tag: &TypeTag
) -> Result<MoveTypeLayout>
pub fn view_function_arguments(
&self,
module: &ModuleId,
function: &IdentStr,
args: &[Vec<u8>]
) -> Result<Vec<AnnotatedMoveValue>>
pub fn view_resource(
&self,
tag: &StructTag,
blob: &[u8]
) -> Result<AnnotatedMoveStruct>
pub fn move_struct_fields(
&self,
tag: &StructTag,
blob: &[u8]
) -> Result<Vec<(Identifier, MoveValue)>>
pub fn view_value(
&self,
ty_tag: &TypeTag,
blob: &[u8]
) -> Result<AnnotatedMoveValue>
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for MoveValueAnnotator<'a, T>
impl<'a, T> !Send for MoveValueAnnotator<'a, T>
impl<'a, T> !Sync for MoveValueAnnotator<'a, T>
impl<'a, T: ?Sized> Unpin for MoveValueAnnotator<'a, T>
impl<'a, T: ?Sized> UnwindSafe for MoveValueAnnotator<'a, T> where
T: RefUnwindSafe,
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