ViewableItem

class zixy.container.base.ViewableItem[source]

Bases: ViewableBase[ImplT, int | None]

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

abstractmethod clone() Self

Return a deep copy of self.

into(t: type[OutT]) OutT

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.

is_owning() bool[source]

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