Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ReTeX/ReX
/ functions
Functions
222 in github.com/ReTeX/ReX
⨍
Functions
222
◇
Types & classes
71
↓ 51 callers
Method
scaled
(self, config: LayoutSettings)
src/layout/convert.rs:116
↓ 49 callers
Method
add_node
(&mut self, node: LayoutNode)
src/layout/builders.rs:19
↓ 41 callers
Method
expect
(&self, expected: Token<'a>)
src/lexer.rs:40
↓ 34 callers
Method
next
Advanced to the next token to be processed, and return it. This will also modify `Lexer.current`.
src/lexer.rs:96
↓ 29 callers
Function
glyph_metrics
(code: u32)
fonts/stix/src/lib.rs:19
↓ 18 callers
Method
consume_whitespace
If the current token being processed from the lexer is a `WhiteSpace` then continue to call `.next()` until `lex.current` is the first non-whitespace
src/lexer.rs:117
↓ 14 callers
Method
as_layout
(&self, config: LayoutSettings)
src/layout/convert.rs:21
↓ 12 callers
Function
layout
Entry point to our recursive algorithm
src/layout/engine.rs:21
↓ 11 callers
Method
as_node
(self)
src/layout.rs:43
↓ 10 callers
Function
required_argument
This method expects to parse a single macro argument. A macro argument will consume a single token, unless the next token starts a group `{<expression
src/parser/engine.rs:274
↓ 8 callers
Method
build
(mut self)
src/layout/builders.rs:29
↓ 8 callers
Function
kern_from
(gly: Glyph, height: FontUnit, side: Corner)
src/font/kerning.rs:72
↓ 8 callers
Method
settings
(&self)
src/render/svg.rs:48
↓ 8 callers
Method
vert_variant
(&self, size: FontUnit)
src/font/variant.rs:18
↓ 8 callers
Method
with_family
(self, fam: Family)
fonts/types/src/lib.rs:136
↓ 7 callers
Method
atom_type
(&self)
src/parser/nodes.rs:160
↓ 7 callers
Method
is_symbol
(&self)
src/parser/nodes.rs:148
↓ 6 callers
Method
centered
(mut self, new_width: FontUnit)
src/layout.rs:77
↓ 5 callers
Method
bbox
(&self, _out: &mut Self::Out, _pos: Cursor, _width: FontUnit, _height: FontUnit, _color: &str)
src/render.rs:131
↓ 5 callers
Function
is_symbol
(contents: &[ParseNode])
src/parser/nodes.rs:190
↓ 5 callers
Function
matrix_with
(lex: &mut Lexer, style: Style, left_delimiter: char, right_delim
src/environments.rs:139
↓ 5 callers
Function
scale
(n: T, config: LayoutSettings)
src/layout/convert.rs:90
↓ 5 callers
Function
style_lookup
(lut: &[u32], codepoint: u32, style: Style)
fonts/stix/src/style.rs:89
↓ 5 callers
Function
style_lookup
(lut: &[u32], codepoint: u32, style: Style)
fonts/stix2/src/style.rs:89
↓ 5 callers
Method
up
(self, dy: FontUnit)
src/render.rs:52
↓ 4 callers
Method
current_char
(&mut self)
src/lexer.rs:234
↓ 4 callers
Method
expect_symbol
(self, expected: char)
src/lexer.rs:52
↓ 4 callers
Function
expression
This function is served as an entry point to parsing input. It can also be used to parse sub-expressions (or more formally known as `mathlists`) which
src/parser/engine.rs:70
↓ 4 callers
Function
max_overlap
(left: FontUnit, right: &GlyphPart)
src/font/variant.rs:327
↓ 4 callers
Function
required_argument_with
This method is similar to `required_argument`, but instead uses a custom parser. For instance, `\color{#012345}{<expression>}` uses a custom parser to
src/parser/engine.rs:294
↓ 3 callers
Method
advance_while_whitespace
This method is the same as [consume_whitespace], except that it does not process the next token.
src/lexer.rs:127
↓ 3 callers
Function
is_symbol
(contents: &[LayoutNode])
src/layout.rs:247
↓ 3 callers
Method
render
(&self, tex: &str)
src/render.rs:264
↓ 3 callers
Method
render_to
(&self, out: &mut Self::Out, tex: &str)
src/render.rs:237
↓ 3 callers
Method
set_offset
(&mut self, offset: FontUnit)
src/layout/builders.rs:25
↓ 3 callers
Function
symbol
Parse a symbol. Symbols can be found from a TeX command (like `\infty`) or from a character input. Note: there are some `char` inputs that don't wor
src/parser/engine.rs:242
↓ 2 callers
Function
advance_with_optional
Calculate the advance of the smallest variant with exactly one set of optional connectors. This returns a tuple: the first element states the advance
src/font/variant.rs:284
↓ 2 callers
Function
advance_without_optional
(parts: &[GlyphPart])
src/font/variant.rs:312
↓ 2 callers
Method
alphanumeric
Match a segment of alphanumeric characters. This method will return an empty string if there are no alphanumeric characters.
src/lexer.rs:195
↓ 2 callers
Function
array_body
(lex: &mut Lexer, style: Style)
src/environments.rs:243
↓ 2 callers
Function
collect_tests
(path: P)
tests/layout.rs:38
↓ 2 callers
Function
construct_glyphs
( parts: &[GlyphPart], repeats: u16, diff_ratio: FontUnit)
src/font/variant.rs:150
↓ 2 callers
Method
cramped
(self)
src/layout.rs:278
↓ 2 callers
Method
depth
(&self)
fonts/types/src/lib.rs:100
↓ 2 callers
Method
dimension
This method will parse a dimension. It assumes that the lexer is currently pointed to the first valid character in a dimension. So it may be necessa
src/lexer.rs:171
↓ 2 callers
Function
dispatch
(lay: &mut Layout, config: LayoutSettings, node: &ParseNode, next: AtomType)
src/layout/engine.rs:81
↓ 2 callers
Method
down
(self, dy: FontUnit)
src/render.rs:58
↓ 2 callers
Function
expression_until_opt
(lex: &mut Lexer, local: Style, end: Option<Token>)
src/parser/engine.rs:14
↓ 2 callers
Method
finalize
(mut self)
src/layout.rs:71
↓ 2 callers
Method
font_size
(self, size: u16)
src/render.rs:85
↓ 2 callers
Method
font_src
(self, src: &str)
src/render.rs:91
↓ 2 callers
Method
height
(&self)
fonts/types/src/lib.rs:95
↓ 2 callers
Function
layout_recurse
(nodes: &[ParseNode], mut config: LayoutSettings, parent_next: AtomType)
src/layout/engine.rs:27
↓ 2 callers
Function
matrix_common
(lex: &mut Lexer, style: Style, left_delimiter: Option<char>,
src/environments.rs:147
↓ 2 callers
Method
next_char
(&mut self)
src/lexer.rs:224
↓ 2 callers
Method
parse
(self, lex: &mut Lexer, local: Style)
src/functions.rs:49
↓ 2 callers
Method
render_hbox
(&self, out: &mut Self::Out, mut pos: Cursor, nodes:
src/render.rs:136
↓ 2 callers
Function
render_styles
()
tests/style.rs:73
↓ 2 callers
Function
render_tests
(tests: Tests)
tests/layout.rs:55
↓ 2 callers
Function
required_group_with
(lex: &mut Lexer, local: Style, f: F)
src/parser/engine.rs:311
↓ 2 callers
Method
rule
(&self, out: &mut W, pos: Cursor, width: FontUnit, height: FontUnit)
src/render/svg.rs:112
↓ 2 callers
Method
set_atom_type
(&mut self, at: AtomType)
src/parser/nodes.rs:134
↓ 2 callers
Function
state_change
Theses commands may change the state of the parser. This includes font style and weight changes.
src/parser/engine.rs:138
↓ 2 callers
Method
subscript_variant
(self)
src/layout.rs:298
↓ 2 callers
Method
superscript_variant
(self)
src/layout.rs:288
↓ 2 callers
Method
symbol
(&self, out: &mut W, pos: Cursor, symbol: u32, scale: Float)
src/render/svg.rs:92
↓ 2 callers
Function
write
(path: P, eqs: &[Equation])
tests/common/svg.rs:40
↓ 2 callers
Function
write_diff
(path: P, diff: Vec<(Equation, Equation)>)
tests/common/svg_diff.rs:107
↓ 2 callers
Function
write_objects
(f: &mut W, objects: &[Object])
tests/common/svg_diff.rs:66
↓ 1 callers
Function
accent
(result: &mut Layout, acc: &Accent, config: LayoutSettings)
src/layout/engine.rs:131
↓ 1 callers
Function
array
Parse an array environment. This method assumes that the lexer is currently positioned after the `\begin{array}` declaration.
src/environments.rs:277
↓ 1 callers
Function
array
(result: &mut Layout, array: &Array, config: LayoutSettings)
src/layout/engine.rs:627
↓ 1 callers
Function
atom_change
(lex: &mut Lexer, local: Style, at: AtomType)
src/functions.rs:245
↓ 1 callers
Function
atom_space
(left: AtomType, right: AtomType, style: Style)
src/layout/spacing.rs:5
↓ 1 callers
Function
codepoint_atom_type
Helper function for determining an atomtype based on a given codepoint. This is primarily used for characters while processing, so may give false nega
src/parser/engine.rs:404
↓ 1 callers
Function
color
(lex: &mut Lexer, local: Style)
src/functions.rs:201
↓ 1 callers
Method
color
(&mut self)
src/lexer.rs:220
↓ 1 callers
Function
color_lit
(lex: &mut Lexer, local: Style, color: RGBA)
src/functions.rs:207
↓ 1 callers
Method
control_sequence
Lex a control sequence. This method assumes that `self.pos` points to the first character after `\`. The cursor will advance through the control sequ
src/lexer.rs:142
↓ 1 callers
Method
debug
(self, debug: bool)
src/render.rs:115
↓ 1 callers
Function
delimited
(result: &mut Layout, delim: &Delimited, config: LayoutSettings)
src/layout/engine.rs:185
↓ 1 callers
Function
delimiter_size
(lex: &mut Lexer, local: Style, _: u8, atom_type: AtomType)
src/functions.rs:232
↓ 1 callers
Method
denominator
(self)
src/layout.rs:349
↓ 1 callers
Method
ends_expression
(self)
src/lexer.rs:28
↓ 1 callers
Function
equation_diffs
(old: &[Equation], new: &[Equation])
tests/layout.rs:80
↓ 1 callers
Function
equation_diffs
(old: &[Equation], new: &[Equation])
tests/common/mod.rs:22
↓ 1 callers
Method
expect_command
(self, expected: &'static str)
src/lexer.rs:48
↓ 1 callers
Method
expect_left
(self)
src/parser/nodes.rs:108
↓ 1 callers
Method
expect_right
(self)
src/parser/nodes.rs:121
↓ 1 callers
Function
expect_type
This method expects that the current token has a given atom type. This method will frist strip all whitespaces first before inspecting the current to
src/parser/engine.rs:351
↓ 1 callers
Function
expression_until
(lex: &mut Lexer, local: Style, end: Token)
src/parser/engine.rs:63
↓ 1 callers
Method
finish
(&self, _out: &mut Self::Out)
src/render.rs:235
↓ 1 callers
Function
frac
(result: &mut Layout, frac: &GenFraction, config: LayoutSettings)
src/layout/engine.rs:433
↓ 1 callers
Function
fraction
(lex: &mut Lexer, local: Style, left_delimiter: Option<Symbol>, right_deli
src/functions.rs:212
↓ 1 callers
Function
greatest_lower_bound
Measure the _largest_ a glyph construction _smaller_ than the given size. If all constructions are larger than the given size, return `None`. Otherwis
src/font/variant.rs:236
↓ 1 callers
Method
has_alpha
(&self)
src/parser/color.rs:8
↓ 1 callers
Method
horz_variant
(&self, size: FontUnit)
src/font/variant.rs:64
↓ 1 callers
Method
is_cramped
(&self)
src/layout.rs:334
↓ 1 callers
Method
is_symbol
(&self)
src/layout.rs:83
↓ 1 callers
Function
kerning
(_: &mut Lexer, _: Style, unit: Unit)
src/functions.rs:237
next →
1–100 of 222, ranked by callers