A simple tao whose only purpose is to keep the content immutable
Static tao containing a resource. Can't be extracted.
struct Tao<Content> has store, key
Fields
-
content: Content
Creating a static tao whose content cannot be extracted.
public fun wrap<Content>(content: Content): Immutable::Tao<Content>
Implementation
Specification
ensures result.content == content;
Immutable read-only reference to the content.
public fun read<Content>(tao: &Immutable::Tao<Content>): &Content
Implementation
Specification
ensures result == tao.content;
For semantic reasons providing unwrap, although it
always fails.
public fun unwrap<Content>(_tao: Immutable::Tao<Content>): Content
Implementation
Specification
aborts_if true with 1;
pragma aborts_if_is_strict;