Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pydantic/jiter
/ functions
Functions
435 in github.com/pydantic/jiter
⨍
Functions
435
◇
Types & classes
59
↓ 34 callers
Method
finish
(&mut self)
crates/jiter/src/parse.rs:179
↓ 23 callers
Method
peek
(&mut self)
crates/jiter/src/parse.rs:81
↓ 19 callers
Method
next_skip
Parse the next JSON value, but don't return it. This should be faster than returning the value, useful when you don't care about this value. Error if
crates/jiter/src/jiter.rs:256
↓ 18 callers
Method
allowed_if_partial
(&self)
crates/jiter/src/errors.rs:139
↓ 18 callers
Function
from_str
Deserialize an instance of `T` from a string of JSON.
crates/jiter/src/serde.rs:161
↓ 18 callers
Method
into_inner
(self)
crates/jiter/src/parse.rs:50
↓ 14 callers
Method
known_skip
Parse the next JSON value, but don't return it. Error if it is invalid JSON. # Arguments - `peek`: The [Peek] of the next JSON value.
crates/jiter/src/jiter.rs:265
↓ 14 callers
Method
peek
Peek at the next JSON value without consuming it.
crates/jiter/src/jiter.rs:83
↓ 14 callers
Function
read_file
(path: &str)
crates/jiter/benches/main.rs:18
↓ 13 callers
Method
array_step
(&mut self)
crates/jiter/src/parse.rs:103
↓ 12 callers
Function
python_parse_file
(path: &str, c: &mut Criterion, cache_mode: StringCacheMode)
crates/jiter/benches/python.rs:40
↓ 12 callers
Function
read_title
(path: &str)
crates/jiter/benches/main.rs:11
↓ 11 callers
Method
is_num
(self)
crates/jiter/src/parse.rs:46
↓ 9 callers
Method
as_str
(&self)
crates/jiter/src/string_decoder.rs:95
↓ 9 callers
Method
consume_null
(&mut self)
crates/jiter/src/parse.rs:195
↓ 9 callers
Method
eat_whitespace
(&mut self)
crates/jiter/src/parse.rs:253
↓ 9 callers
Method
into_pyobject
(self, py: pyo3::Python<'py>)
crates/jiter/src/value.rs:42
↓ 9 callers
Method
next_number
Assuming the next value is a number, consume it. Error if it is not a number, or is invalid JSON. # Returns A [NumberAny] representing the number.
crates/jiter/src/jiter.rs:130
↓ 8 callers
Method
array_first
(&mut self)
crates/jiter/src/parse.rs:89
↓ 8 callers
Method
clone
Clone a `Jiter`. Like the default implementation, but a new empty `tape` is used.
crates/jiter/src/jiter.rs:22
↓ 8 callers
Method
consume_false
(&mut self)
crates/jiter/src/parse.rs:191
↓ 8 callers
Method
consume_true
(&mut self)
crates/jiter/src/parse.rs:187
↓ 8 callers
Method
with_allow_inf_nan
Allow `NaN`, `Infinity` and `-Infinity` in numbers (off by default).
crates/jiter/src/serde.rs:193
↓ 8 callers
Method
wrong_type
(&self, expected: JsonType, peek: Peek)
crates/jiter/src/jiter.rs:369
↓ 7 callers
Method
known_float
Knowing the next value is a float, parse it.
crates/jiter/src/jiter.rs:168
↓ 7 callers
Function
py_err_to_json_err
(e: &PyErr, index: usize)
crates/jiter/src/python.rs:393
↓ 6 callers
Method
finish
Error unless all input has been consumed.
crates/jiter/src/serde.rs:212
↓ 6 callers
Method
known_str
Knowing the next value is a string, parse it.
crates/jiter/src/jiter.rs:202
↓ 6 callers
Method
next_array
Assuming the next value is an array, peek at the first value. Error if it is not an array, or is invalid JSON. # Returns The `Some(peek)` of the firs
crates/jiter/src/jiter.rs:303
↓ 6 callers
Method
next_str
Assuming the next value is a string, consume it. Error if it is not a string, or is invalid JSON.
crates/jiter/src/jiter.rs:193
↓ 6 callers
Method
with_allow_partial_strings
(mut self)
crates/jiter/src/jiter.rs:54
↓ 5 callers
Method
extract
(ob: Borrowed<'_, 'py, PyAny>)
crates/jiter/src/python.rs:242
↓ 5 callers
Function
from_slice
Deserialize an instance of `T` from a slice of JSON bytes.
crates/jiter/src/serde.rs:148
↓ 5 callers
Function
get_key
(o: &'a JsonObject<'j>, key: &str)
crates/jiter/tests/main.rs:1206
↓ 5 callers
Method
is_active
(self)
crates/jiter/src/lib.rs:198
↓ 5 callers
Method
known_bool
Knowing the next value is `true` or `false`, parse it.
crates/jiter/src/jiter.rs:112
↓ 5 callers
Method
known_int
Knowing the next value is an integer, parse it.
crates/jiter/src/jiter.rs:149
↓ 5 callers
Method
python_parse
Parse a JSON value from a byte slice and return a Python object. # Arguments - `py`: [Python](https://docs.rs/pyo3/latest/pyo3/marker/struct.Python.
crates/jiter/src/python.rs:47
↓ 4 callers
Method
allow_trailing_str
(self)
crates/jiter/src/lib.rs:202
↓ 4 callers
Method
as_decimal
(&self, py: Python<'py>)
crates/jiter/src/py_lossless_float.rs:56
↓ 4 callers
Method
ascii_only
(&self)
crates/jiter/src/string_decoder.rs:101
↓ 4 callers
Function
cached_py_string_maybe_ascii
# Safety Caller must match the ascii_only flag to the string passed in.
crates/jiter/src/py_string_cache.rs:129
↓ 4 callers
Method
check_take_value
(&mut self, py: Python<'py>, peek: Peek)
crates/jiter/src/python.rs:225
↓ 4 callers
Function
consume_exponential
(data: &[u8], mut index: usize)
crates/jiter/src/number_decoder.rs:520
↓ 4 callers
Method
description
The error with its line/column resolved against `data` (when known).
crates/jiter/src/serde.rs:93
↓ 4 callers
Method
known_number
Knowing the next value is a number, parse it.
crates/jiter/src/jiter.rs:136
↓ 4 callers
Method
maybe_number_error
(&self, e: JsonError, expected: JsonType, peek: Peek)
crates/jiter/src/jiter.rs:391
↓ 4 callers
Function
pystring_fast_new_maybe_ascii
Creatate a new Python `str` from a string slice, with a fast path for ASCII strings # Safety `ascii_only` must only be set to `true` if the string i
crates/jiter/src/py_string_cache.rs:239
↓ 4 callers
Function
read_file
(path: &str)
crates/jiter/tests/main.rs:744
↓ 4 callers
Function
to_str
(bytes: &[u8], ascii_only: bool, start: usize, allow_partial: bool)
crates/jiter/src/string_decoder.rs:347
↓ 4 callers
Method
with_recursion_limit
Set the max nesting depth (default [`DEFAULT_RECURSION_LIMIT`]); deeper input errors with [`JsonErrorType::RecursionLimitExceeded`].
crates/jiter/src/serde.rs:200
↓ 3 callers
Method
allow_partial_err
(&self, e: &JsonError)
crates/jiter/src/python.rs:217
↓ 3 callers
Function
cache_clear
()
crates/jiter/src/py_string_cache.rs:104
↓ 3 callers
Method
clear
clear the cache by resetting all entries to `None`
crates/jiter/src/py_string_cache.rs:229
↓ 3 callers
Function
consume_decimal
(data: &[u8], mut index: usize)
crates/jiter/src/number_decoder.rs:548
↓ 3 callers
Function
consume_ident
(data: &[u8], mut index: usize, expected: [u8; SIZE])
crates/jiter/src/parse.rs:272
↓ 3 callers
Method
consume_ident
(&mut self, expected: [u8; SIZE])
crates/jiter/src/parse.rs:237
↓ 3 callers
Function
consume_nan
(data: &[u8], index: usize, allow_inf_nan: bool)
crates/jiter/src/number_decoder.rs:201
↓ 3 callers
Function
decode_chunk
( data: &[u8], index: usize, ascii_only: bool, allow_partial: bool, )
crates/jiter/src/string_decoder.rs:199
↓ 3 callers
Function
decode_int_chunk_fallback
(data: &[u8], mut index: usize, mut value: u64)
crates/jiter/src/number_decoder.rs:362
↓ 3 callers
Method
enter
Enter a nested array/object, enforcing the recursion limit.
crates/jiter/src/serde.rs:217
↓ 3 callers
Function
floats_approx
(f1: Option<f64>, f2: Option<f64>)
crates/fuzz/fuzz_targets/compare_to_serde.rs:51
↓ 3 callers
Function
get_string_cache
()
crates/jiter/src/py_string_cache.rs:88
↓ 3 callers
Method
leave
Leave a nested array/object.
crates/jiter/src/serde.rs:229
↓ 2 callers
Method
__str__
(&self)
crates/jiter/src/py_lossless_float.rs:78
↓ 2 callers
Method
check
(&mut self, _key: &str, _index: usize)
crates/jiter/src/python.rs:266
↓ 2 callers
Function
consume_inf
(data: &[u8], index: usize, positive: bool, allow_inf_nan: bool)
crates/jiter/src/number_decoder.rs:182
↓ 2 callers
Function
consume_inf_f64
(data: &[u8], index: usize, positive: bool, allow_inf_nan: bool)
crates/jiter/src/number_decoder.rs:192
↓ 2 callers
Method
current_index
Get the current index of the parser.
crates/jiter/src/jiter.rs:65
↓ 2 callers
Method
current_position
(&self)
crates/jiter/src/parse.rs:77
↓ 2 callers
Function
de_f64_inf_nan
(s: &str)
crates/jiter/tests/serde.rs:7
↓ 2 callers
Function
deserialize_number
Deserialize a number for a typed float target, keeping non-finite values as real `f64`s.
crates/jiter/src/serde.rs:377
↓ 2 callers
Method
disable_recursion_limit
Disable the recursion limit; deeply nested input may then overflow the stack.
crates/jiter/src/serde.rs:206
↓ 2 callers
Function
from_bytes_complete
(data: &[u8], allow_inf_nan: bool)
crates/jiter/src/number_decoder.rs:172
↓ 2 callers
Function
full_calc
(byte_vec: SimdVecu8_16, last_digit: u32)
crates/jiter/src/simd_aarch64.rs:153
↓ 2 callers
Function
get_decimal_type
(py: Python<'_>)
crates/jiter/src/py_lossless_float.rs:90
↓ 2 callers
Method
get_position
Line/column of the error within `data`, if the position is known.
crates/jiter/src/serde.rs:88
↓ 2 callers
Method
get_position
(&self, json_data: &[u8])
crates/jiter/src/errors.rs:130
↓ 2 callers
Function
is_zero
return true if all bytes are zero
crates/jiter/src/simd_aarch64.rs:257
↓ 2 callers
Method
known_array
Assuming the next value is an array, peat at the first value.
crates/jiter/src/jiter.rs:312
↓ 2 callers
Method
known_null
Knowing the next value is `null`, consume it.
crates/jiter/src/jiter.rs:97
↓ 2 callers
Method
known_object
Assuming the next value is an object, conssume the first key and return bytes from the original JSON data.
crates/jiter/src/jiter.rs:335
↓ 2 callers
Function
load_slice
(bytes: &[u8])
crates/jiter/src/simd_aarch64.rs:262
↓ 2 callers
Method
next_bool
Assuming the next value is `true` or `false`, consume it. Error if it is not a boolean, or is invalid JSON. # Returns The boolean value.
crates/jiter/src/jiter.rs:106
↓ 2 callers
Method
next_key
Get the next key in an object, or `None` if there are no more keys.
crates/jiter/src/jiter.rs:353
↓ 2 callers
Method
next_number_bytes
Assuming the next value is a number, consume it and return bytes from the original JSON data.
crates/jiter/src/jiter.rs:176
↓ 2 callers
Method
next_value
Parse the next JSON value and return it as a [JsonValue]. Error if it is invalid JSON.
crates/jiter/src/jiter.rs:230
↓ 2 callers
Function
parse_escape
Taken approximately from https://github.com/serde-rs/json/blob/v1.0.107/src/read.rs#L872-L945
crates/jiter/src/string_decoder.rs:369
↓ 2 callers
Function
parse_u4
(data: &[u8], mut index: usize)
crates/jiter/src/string_decoder.rs:400
↓ 2 callers
Method
py_take_value
(&mut self, py: Python<'py>, peek: Peek)
crates/jiter/src/python.rs:123
↓ 2 callers
Function
pystring_ascii_new
Faster creation of PyString from an ASCII string, inspired by <https://github.com/ijl/orjson/blob/3.10.0/src/str/create.rs#L41> # Safety `s` must be
crates/jiter/src/py_string_cache.rs:254
↓ 2 callers
Function
remove_suffix
(s: &str)
crates/fuzz/fuzz_targets/compare_to_serde.rs:75
↓ 2 callers
Method
short
(&self)
crates/jiter/src/errors.rs:310
↓ 2 callers
Method
slice
(&self, range: Range<usize>)
crates/jiter/src/parse.rs:73
↓ 2 callers
Method
step
The next element's [`Peek`], or `None` (consuming `]`) at the end.
crates/jiter/src/serde.rs:441
↓ 2 callers
Function
take_value
( peek: Peek, parser: &mut Parser<'j>, tape: &mut Tape, recursion_limit: u8, allow_inf_nan
crates/jiter/src/value.rs:219
↓ 2 callers
Function
take_value_borrowed
( peek: Peek, parser: &mut Parser<'j>, tape: &mut Tape, recursion_limit: u8, allow_inf_nan
crates/jiter/src/value.rs:181
↓ 2 callers
Function
take_value_owned
( peek: Peek, parser: &mut Parser<'j>, tape: &mut Tape, recursion_limit: u8, allow_inf_nan
crates/jiter/src/value.rs:200
↓ 2 callers
Function
take_value_recursive
( mut peek: Peek, mut current_recursion: RecursedValue<'s>, parser: &mut Parser<'j>, tape: &mu
crates/jiter/src/value.rs:330
↓ 2 callers
Function
take_value_skip
like `take_value`, but nothing is returned, should be faster than `take_value`, useful when you don't care about the value, but just want to consume i
crates/jiter/src/value.rs:588
next →
1–100 of 435, ranked by callers