Skip to content

Validator

Mojo struct 🡭

@memory_only
struct Validator

Validator for FASTA records; enforces 7-bit ASCII on id and sequence.

AnyType, Copyable, ImplicitlyDestructible, Movable

def __init__(out self)

Args:

  • self (Self)

Returns:

Self

def validate(self, id_bytes: BString, seq_bytes: BString, ctx: ParseContext)

Args:

  • self (Self)
  • id_bytes (BString)
  • seq_bytes (BString)
  • ctx (ParseContext)

Raises: