ViewableBase

class zixy.container.base.ViewableBase[source]

Bases: Generic[ImplT, IndexerT]

Abstract base class for classes with an ownership model and underlying Rust-bound data.

abstractmethod clone() Self[source]

Return a deep copy of self.

into(t: type[OutT]) OutT[source]

Clone self into a new related container of type t.

Parameters:

t – Type of the new container to create.

Returns:

A new instance of t containing the same data as self.

abstractmethod is_owning() bool[source]

Check if self is owning (i.e. not a view).