Validator
Mojo struct 🡭
Validator
Section titled “Validator”@memory_onlystruct ValidatorValidator for FASTA records; enforces 7-bit ASCII on id and sequence.
Implemented traits
Section titled “Implemented traits”AnyType, Copyable, ImplicitlyDestructible, Movable
Methods
Section titled “Methods”__init__
Section titled “__init__”def __init__(out self)Args:
- self (
Self)
Returns:
Self
validate
Section titled “validate”def validate(self, id_bytes: BString, seq_bytes: BString, ctx: ParseContext)Args:
- self (
Self) - id_bytes (
BString) - seq_bytes (
BString) - ctx (
ParseContext)
Raises: