Module encoding_rs::ascii

source ยท

Macrosยง

Constantsยง

Functionsยง

  • Safety: src and dst must have len elements, src is valid for read, dst is valid for write Safety-usable invariant: will return Some() when it fails to convert. The first value will be a u8 that is > 127.
  • ascii_to_ascii_stride ๐Ÿ”’ โš 
  • Safety: src and dst must have len elements, src is valid for read, dst is valid for write Safety-usable invariant: will return Some() when it fails to convert. The first value will be a u8 that is > 127.
  • Safety: src and dst must have len elements, src is valid for read, dst is valid for write Safety-usable invariant: will return Some() when it fails to convert. The first value will be a u8 that is > 127.
  • count_zeros ๐Ÿ”’
  • find_non_ascii ๐Ÿ”’
  • likely ๐Ÿ”’
  • pack_alu ๐Ÿ”’ โš 
    Safety: dst must point to valid space for writing two usizes
  • Safety: src and dst must have len elements, src is valid for read, dst is valid for write
  • pack_latin1_stride_alu ๐Ÿ”’ โš 
  • unlikely ๐Ÿ”’
  • unpack_alu ๐Ÿ”’ โš 
    Safety: dst must point to valid space for writing four usizes
  • Safety: src and dst must have len elements, src is valid for read, dst is valid for write
  • unpack_latin1_stride_alu ๐Ÿ”’ โš 
  • Safety-usable invariant: will return Some() when it encounters non-ASCII, with the first element in the Some being guaranteed to be non-ASCII (> 127), and the second being the offset where it is found
  • validate_ascii_stride ๐Ÿ”’ โš 
    Safety: src must be valid for the reads of two usizes