FromDelimited

Mojo trait 🡭

FromDelimited

Create an instance of Self from the iterator over Span[UInt8] bytes.

Implemented traits

AnyType, Copyable, Deinitable, Movable

Methods

 

__init__

def __init__(out self, *, copy: Self)

Create a new instance of the value by copying an existing one.Args:

  • copy (_Self): The value to copy.
  • self (_Self)

Returns:

_Self

def __init__(out self, *, deinit move: Self)

Create a new instance of the value by moving the value of another.Args:

  • move (_Self): The value to move.
  • self (_Self)

Returns:

_Self

from_delimited

@staticmethod
def from_delimited(mut data: SplitIterator, header_values: Optional[List[String]] = None) -> Self

DetailsArgs:

  • data (SplitIterator)
  • header_values (Optional[List[String]])

Returns:

_Self

Raises:

copy

def copy(self) -> Self

Explicitly construct a copy of self, a convenience method for Self(copy=self) when the type is inconvenient to write out.Overriding this method is not allowed.

Args:

  • self (_Self)

Returns:

_Self: A copy of this value.