Skip to main content

Mojo struct

DoubleBuffer

struct DoubleBuffer[T: AnyType]

Implemented traits

AnyType, Copyable, Movable, UnknownDestructibility

Methods

__init__

__init__(out self)

__init__(out self, current: UnsafePointer[T], alternate: UnsafePointer[T])

current

current(self) -> UnsafePointer[T]

alternate

alternate(self) -> UnsafePointer[T]

swap

swap(mut self)

Was this page helpful?