Struct Owned
pub struct Owned<V, Context> {
pub context: Context,
/* private fields */
}
Fields
context: ContextImplementations
impl<Context, V> Owned<V, Context>
pub fn at(self, owner: AztecAddress) -> V
where
V: OwnedStateVariable<Context>
Returns an instance of the underlying owned state variable for a given owner.
A wrapper state variable that is to be used with variables that implement the
OwnedStateVariabletrait.Example usage:
To access the underlying owned state variable for a specific owner, use the
atmethod:For more information on ownership, see the documentation for the
OwnedStateVariabletrait.Type Parameters
V- The underlying type that implementsOwnedStateVariable<Context>(e.g.,PrivateSet,PrivateMutable).Context- The execution context type (e.g.,PublicContext,PrivateContext,UtilityContext). The context determines which methods of the state variable are available.