Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cgbur/badge-maker
/ functions
Functions
173 in github.com/cgbur/badge-maker
⨍
Functions
173
◇
Types & classes
28
↓ 20 callers
Method
hex
(&self)
src/badge/color/color.rs:54
↓ 9 callers
Method
label
(&self)
src/badge/badge.rs:107
↓ 9 callers
Method
message
(&self)
src/badge/badge.rs:111
↓ 8 callers
Method
links
(&self)
src/badge/badge.rs:127
↓ 7 callers
Function
u4_to_hexit
(u: u8)
src/badge/color/util.rs:57
↓ 6 callers
Method
any
(&self)
src/badge/links.rs:23
↓ 6 callers
Method
build
(&self)
src/badge/badge_builder.rs:156
↓ 6 callers
Function
hex_to_u32
(s: &str)
benches/hex.rs:68
↓ 6 callers
Function
hex_to_u32
(s: &str)
src/badge/color/util.rs:100
↓ 5 callers
Function
escape_xml
(s: &str)
src/render/util/xml.rs:56
↓ 4 callers
Method
height
(&self)
src/render/renderers/styles/flat.rs:19
↓ 4 callers
Function
render_text
(config: RenderTextConfig)
src/render/renderers/text.rs:87
↓ 3 callers
Method
logo
(&self)
src/badge/badge.rs:131
↓ 3 callers
Function
render_badge
(config: RenderBadgeConfig, main: &str)
src/render/renderers/badge.rs:46
↓ 3 callers
Method
single
(&self)
src/badge/links.rs:16
↓ 2 callers
Method
color
(&self)
src/badge/badge.rs:119
↓ 2 callers
Method
color_parse
(&mut self, color: &str)
src/badge/badge_builder.rs:82
↓ 2 callers
Function
escape_xml
(s: &str)
benches/render_text.rs:8
↓ 2 callers
Method
font
(&self)
src/render/renderers/styles/flat.rs:15
↓ 2 callers
Function
get_color_from_option
( is_label: bool, color_string: Option<String>, color_enum: Option<&Color>, )
src/badge/color/util.rs:6
↓ 2 callers
Method
is_single
(&self)
src/badge/links.rs:8
↓ 2 callers
Method
label_color
(&self)
src/badge/badge.rs:115
↓ 2 callers
Method
label_color_parse
(&mut self, label_color: &str)
src/badge/badge_builder.rs:72
↓ 2 callers
Method
shadow
(&self)
src/render/renderers/styles/flat.rs:27
↓ 2 callers
Method
style_parse
(&mut self, style: &str)
src/badge/badge_builder.rs:92
↓ 2 callers
Method
vertical_margin
(&self)
src/render/renderers/styles/flat.rs:23
↓ 2 callers
Method
width
(&self)
src/badge/logo.rs:53
↓ 1 callers
Function
brightness
(color: &str)
src/badge/color/util.rs:30
↓ 1 callers
Method
char_dict
(&self)
src/render/font/font.rs:53
↓ 1 callers
Function
clean
(svg: &str, replace_id: &str)
tests/e2e.rs:37
↓ 1 callers
Function
colors_for_background
(color: &str)
src/render/util/text.rs:11
↓ 1 callers
Method
contains
(&self, char: u32)
src/render/font/char_datum.rs:11
↓ 1 callers
Function
create_accessible_text
(label: &Option<String>, message: &str)
src/render/util/text.rs:29
↓ 1 callers
Function
create_accessible_text_new
(label: &Option<String>, message: &str)
benches/create_accessible.rs:13
↓ 1 callers
Function
create_accessible_text_old
(label: &Option<String>, message: &str)
benches/create_accessible.rs:5
↓ 1 callers
Function
escape_xml
(s: &str)
benches/render_attributes.rs:8
↓ 1 callers
Function
escape_xml
(s: &str)
benches/render_title.rs:8
↓ 1 callers
Function
escape_xml_auto_optimized
(s: &str)
benches/xml.rs:151
↓ 1 callers
Function
escape_xml_auto_optimized_sized
(s: &str)
benches/xml.rs:172
↓ 1 callers
Function
escape_xml_optimized
(s: &str)
benches/xml.rs:141
↓ 1 callers
Function
escape_xml_optimized_sized
(s: &str)
benches/xml.rs:161
↓ 1 callers
Function
gen_id
The purpose of a unique id is to make the svg compatible with direct website embedding. Hashing is done as a escaping mechanism.
src/badge/badge.rs:11
↓ 1 callers
Function
get_badges
()
tests/constants.rs:20
↓ 1 callers
Function
get_node_output
(badge: &NewBadge)
tests/e2e.rs:11
↓ 1 callers
Method
height
(&self)
src/render/renderers/styles/flat_square.rs:19
↓ 1 callers
Method
height
(&self)
src/render/renderers/styles/plastic.rs:19
↓ 1 callers
Function
hex_color_to_rgb
(hex: &str)
src/badge/color/util.rs:108
↓ 1 callers
Function
hex_to_rgb_custom_radix
(hex: &str)
benches/hex.rs:76
↓ 1 callers
Function
hex_to_rgb_or
(hex: &str)
benches/hex.rs:22
↓ 1 callers
Function
hex_to_rgb_repeat
(hex: &str)
benches/hex.rs:1
↓ 1 callers
Function
hex_to_u32_one
(c: &char)
benches/hex.rs:46
↓ 1 callers
Function
hex_to_u32_one
(c: &char)
src/badge/color/util.rs:35
↓ 1 callers
Method
id
(&self)
src/badge/badge.rs:142
↓ 1 callers
Function
is_control_char
(c: u32)
src/render/font/util.rs:1
↓ 1 callers
Function
is_enum_color
(color: &str)
src/badge/color/parser.rs:30
↓ 1 callers
Function
is_hex_no_pound
(color: &str)
src/badge/color/parser.rs:52
↓ 1 callers
Function
is_hex_pound
(color: &str)
src/badge/color/parser.rs:64
↓ 1 callers
Function
is_rgb
(color: &str)
src/badge/color/parser.rs:76
↓ 1 callers
Method
is_same_link
(&self)
src/badge/links.rs:12
↓ 1 callers
Method
left
(&self)
src/badge/links.rs:27
↓ 1 callers
Function
load
(badge_id: u64)
tests/e2e.rs:58
↓ 1 callers
Method
padding
(&self)
src/badge/logo.rs:60
↓ 1 callers
Function
parse_color
(color: &str)
src/badge/color/parser.rs:10
↓ 1 callers
Function
parse_style
(s: &str)
src/badge/style.rs:16
↓ 1 callers
Function
preferred_width
(text: &str, font: &Font)
src/render/util/text.rs:25
↓ 1 callers
Function
render_attributes
(links: &Links, accessible_text: &str)
src/render/renderers/attributes.rs:6
↓ 1 callers
Function
render_attributes_format
(links: &Links, accessible_text: &str)
benches/render_attributes.rs:31
↓ 1 callers
Function
render_attributes_string
(links: &Links, accessible_text: &str)
benches/render_attributes.rs:18
↓ 1 callers
Function
render_badge_new
(config: RenderBadgeConfig, main: &str)
benches/render_badge.rs:68
↓ 1 callers
Function
render_badge_old
(config: RenderBadgeConfig, main: &str)
benches/render_badge.rs:28
↓ 1 callers
Function
render_link
(config: RenderLinkConfig)
src/render/renderers/links.rs:17
↓ 1 callers
Function
render_logo
(config: RenderLogoConfig)
src/render/renderers/logo.rs:21
↓ 1 callers
Function
render_text_new
(config: RenderTextConfig)
benches/render_text.rs:83
↓ 1 callers
Function
render_text_old
(config: RenderTextConfig)
benches/render_text.rs:34
↓ 1 callers
Function
render_title
(links: &Links, accessible_text: &str)
benches/render_title.rs:18
↓ 1 callers
Function
render_title
(links: &Links, accessible_text: &str)
src/render/renderers/title.rs:6
↓ 1 callers
Function
render_title_new
(links: &Links, accessible_text: &str)
benches/render_title.rs:26
↓ 1 callers
Function
replace_fill_attribute
Finds the fill value defined or if not defined will add a default value. # Arguments `svg` - The svg to search. `replace_with` - The value to replace
src/render/util/xml.rs:22
↓ 1 callers
Method
right
(&self)
src/badge/links.rs:30
↓ 1 callers
Function
round_up_to_odd
(val: usize)
src/render/util/round.rs:1
↓ 1 callers
Function
strip_xml_trailing_aho
(s: &str)
benches/xml.rs:93
↓ 1 callers
Function
strip_xml_trailing_aho
(s: &str)
src/render/util/xml.rs:45
↓ 1 callers
Function
strip_xml_whitespace
(s: &str)
src/render/util/xml.rs:66
↓ 1 callers
Method
svg
(&self)
src/badge/badge.rs:99
↓ 1 callers
Function
u64_to_hex
(num: u64)
src/badge/color/util.rs:79
↓ 1 callers
Method
width_of_str
(&self, s: &str)
src/render/font/font.rs:28
Function
aho_corasick_pattern_builder
( size: usize, start: &str, onwards: &str, )
benches/xml.rs:57
Function
aho_corasick_pattern_builder
( size: usize, start: &str, onwards: &str, )
src/render/util/xml.rs:70
Function
badge_builder_color_parse
()
src/badge/badge_builder.rs:262
Function
badge_builder_text
()
src/badge/badge_builder.rs:239
Function
base_config_test
()
src/render/base.rs:127
Function
bench_crete_accessible
(c: &mut Criterion)
benches/bench.rs:171
Function
bench_escape_xml
(c: &mut Criterion)
benches/bench.rs:19
Function
bench_hex
(c: &mut Criterion)
benches/bench.rs:84
Function
bench_render_attributes
(c: &mut Criterion)
benches/bench.rs:63
Function
bench_render_badge
(c: &mut Criterion)
benches/bench.rs:125
Function
bench_render_text
(c: &mut Criterion)
benches/bench.rs:101
Function
bench_render_title
(c: &mut Criterion)
benches/bench.rs:155
Function
bench_strip_xml_whitespace
(c: &mut Criterion)
benches/bench.rs:41
Function
brightness_test
()
src/badge/color/util.rs:142
next →
1–100 of 173, ranked by callers