Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yatekii/sailor
/ functions
Functions
199 in github.com/Yatekii/sailor
⨍
Functions
199
◇
Types & classes
50
↓ 26 callers
Method
iter
(&self)
src/lib/math/tile_field.rs:27
↓ 19 callers
Function
whitespace
Munch all whitespace before and after `f`.
src/lib/css.rs:343
↓ 15 callers
Method
to_string
(&self)
src/lib/vector_tile/tile.rs:361
↓ 9 callers
Method
text
(&self)
src/lib/vector_tile/tile.rs:264
↓ 8 callers
Method
points
Returns the set of points contained in the object.
src/lib/object.rs:56
↓ 7 callers
Function
as_byte_slice
(slice: &[T])
src/lib/drawing/mod.rs:11
↓ 6 callers
Method
add_vertex
(&mut self, v: FillVertex)
src/lib/drawing/mesh.rs:63
↓ 5 callers
Method
contains
(&self, tile_id: &TileId)
src/lib/math/tile_field.rs:34
↓ 5 callers
Method
get_tile_size
(&self)
src/lib/math/screen.rs:21
↓ 5 callers
Method
size
(&self)
src/lib/css.rs:295
↓ 5 callers
Method
tile_to_global_space
(&self, z: f32, coordinate: &TileId)
src/lib/math/screen.rs:45
↓ 4 callers
Method
get_current_index
(&mut self)
src/lib/drawing/mesh.rs:41
↓ 4 callers
Method
get_tile_boundaries_for_zoom_level
(&self, z: f32, scale: u32)
src/lib/math/screen.rs:25
↓ 4 callers
Function
load_glsl
(code: &str, stage: ShaderStage)
src/bin/drawing/helpers.rs:10
↓ 4 callers
Method
visible_tiles
(&self)
src/bin/app_state.rs:55
↓ 3 callers
Function
add_header_separator
(ui: &Ui, title: impl Into<ImString>)
src/bin/drawing/ui/ui.rs:352
↓ 3 callers
Function
get_side
(a: &Point, b: &Point, c: &Point)
src/lib/drawing/line_tesselator.rs:5
↓ 3 callers
Method
with_any
Makes the selector require the kv `key`/`value`.
src/lib/css.rs:247
↓ 2 callers
Function
add_color_picker
(ui: &Ui, rule: &mut Rule, attribute: &str)
src/bin/drawing/ui/ui.rs:271
↓ 2 callers
Function
add_slider_float
(ui: &Ui, rule: &mut Rule, attribute: &str)
src/bin/drawing/ui/ui.rs:306
↓ 2 callers
Function
deg2num
(lat_deg: f32, lon_deg: f32, zoom: u32)
src/lib/math/mod.rs:16
↓ 2 callers
Function
ensure_cache_structure
(root: impl AsRef<Path>, tile_id: &TileId)
src/lib/fetch.rs:84
↓ 2 callers
Method
ensure_feature
(&mut self, selector: &Selector)
src/lib/feature/collection.rs:36
↓ 2 callers
Method
extent
(&self)
src/lib/vector_tile/tile.rs:244
↓ 2 callers
Method
get_zindex
(&self, feature_id: u32)
src/lib/feature/collection.rs:65
↓ 2 callers
Function
global_to_num_space
(point: &Point, z: u32)
src/lib/math/mod.rs:29
↓ 2 callers
Method
matches
Checks if a subset of criteria of this selector matches all the criteria of another. Use example: layer.selector.matches(&landmark_selector)`.
src/lib/css.rs:255
↓ 2 callers
Method
mesh
(&self)
src/lib/vector_tile/tile.rs:256
↓ 2 callers
Method
new_vertex
(&mut self, vertex: tessellation::FillVertex)
src/lib/drawing/vertex.rs:38
↓ 2 callers
Function
num_to_global_space
(coordinate: &TileCoordinate)
src/lib/math/mod.rs:25
↓ 2 callers
Method
objects
(&self)
src/lib/vector_tile/tile.rs:252
↓ 2 callers
Method
selector
Returns the selector describing the object.
src/lib/object.rs:66
↓ 2 callers
Method
set_current_extent
(&mut self, extent: f32)
src/lib/drawing/mesh.rs:37
↓ 2 callers
Method
set_current_feature_id
(&mut self, feature_id: u32)
src/lib/drawing/mesh.rs:33
↓ 2 callers
Method
set_current_vertex_type
(&mut self, vertex_type: VertexType)
src/lib/drawing/mesh.rs:45
↓ 2 callers
Method
tile_id
(&self)
src/lib/vector_tile/tile.rs:272
↓ 2 callers
Function
try_parse_styles
Tries to parse an entire stylesheet.
src/lib/css.rs:19
↓ 2 callers
Method
with_type
Makes the selector require the type `typ`.
src/lib/css.rs:229
↓ 1 callers
Method
add
(self, other: Self)
src/lib/math/tile_id.rs:33
↓ 1 callers
Function
add_display_none
(ui: &Ui, rule: &mut Rule)
src/bin/drawing/ui/ui.rs:330
↓ 1 callers
Method
add_feature
(&mut self, mut feature: Feature)
src/lib/feature/collection.rs:29
↓ 1 callers
Method
add_object
(&mut self, id: usize, object: &Object)
src/lib/interaction/tile_collider.rs:25
↓ 1 callers
Method
advance_selected_object
(&mut self)
src/bin/app_state.rs:157
↓ 1 callers
Method
assemble_style_buffer
(&self)
src/lib/feature/collection.rs:75
↓ 1 callers
Method
capture_frame
(&mut self)
src/bin/stats.rs:22
↓ 1 callers
Method
collider
(&self)
src/lib/vector_tile/tile.rs:248
↓ 1 callers
Method
create_bind_group
( device: &Device, bind_group_layout: &BindGroupLayout, texture: &Texture, sam
src/bin/drawing/weather/temperature.rs:203
↓ 1 callers
Method
create_render_pipeline
( device: &Device, bind_group_layout: &BindGroupLayout, vs_module: &ShaderModule,
src/bin/drawing/weather/temperature.rs:146
↓ 1 callers
Function
deg2rad
(deg: f32)
src/lib/math/mod.rs:12
↓ 1 callers
Method
feature_collection
(&self)
src/bin/app_state.rs:59
↓ 1 callers
Method
features
(&self)
src/lib/vector_tile/tile.rs:260
↓ 1 callers
Function
fetch_tile_data
(cache_location: impl AsRef<Path>, tile_id: &TileId)
src/lib/fetch.rs:5
↓ 1 callers
Function
fetch_tile_from_server
(tile_id: &TileId)
src/lib/fetch.rs:50
↓ 1 callers
Method
finalize_loaded_tiles
Check loaders for loaded tiles and insert them if there is any.
src/lib/cache.rs:39
↓ 1 callers
Method
generate_texture
( &mut self, device: &mut wgpu::Device, queue: &mut wgpu::Queue, width: u32,
src/bin/drawing/weather/temperature.rs:227
↓ 1 callers
Function
geometry_commands_to_paths
(geometry_type: GeomType, geometry: &[u32])
src/lib/vector_tile/mod.rs:107
↓ 1 callers
Method
get_feature_id
(&mut self, selector: &crate::css::Selector)
src/lib/feature/collection.rs:21
↓ 1 callers
Method
get_features
(&self)
src/lib/feature/collection.rs:17
↓ 1 callers
Method
get_hidpi_factor
(&self)
src/bin/drawing/painter.rs:541
↓ 1 callers
Method
get_last_delta
(&self)
src/bin/stats.rs:34
↓ 1 callers
Method
get_matching_rules
Returns all Rules that match a given selector. E.g. `layer` does not match the `layer[zoom=5]` rule selector. On the contrary, `layer[zoom=5]` matche
src/lib/css.rs:81
↓ 1 callers
Method
get_matching_rules_mut
(&mut self, selector: &Selector)
src/lib/css.rs:88
↓ 1 callers
Method
global_to_screen
(&self, z: f32)
src/lib/math/screen.rs:52
↓ 1 callers
Method
gpu_tile
(&self)
src/lib/vector_tile/visible_tile.rs:58
↓ 1 callers
Method
has_outline
(&self, feature_id: u32)
src/lib/feature/collection.rs:58
↓ 1 callers
Method
interact
( &mut self, window: &winit::window::Window, event: &winit::event::Event<()>, )
src/bin/drawing/ui/ui.rs:259
↓ 1 callers
Function
is_in_cache
(path: impl Into<String>)
src/lib/fetch.rs:80
↓ 1 callers
Method
is_loaded_to_gpu
(&self)
src/lib/vector_tile/visible_tile.rs:46
↓ 1 callers
Method
is_visible
(&self, feature_id: u32)
src/lib/feature/collection.rs:44
↓ 1 callers
Method
load
(device: &Device, tile: &Tile)
src/lib/drawing/loaded_gpu_tile.rs:11
↓ 1 callers
Method
load_collider
(&mut self)
src/lib/vector_tile/visible_tile.rs:50
↓ 1 callers
Method
load_style
(&mut self, zoom: f32, css_cache: &mut RulesCache)
src/lib/feature/mod.rs:55
↓ 1 callers
Method
load_styles
(&mut self, zoom: f32, css_cache: &mut RulesCache)
src/lib/feature/collection.rs:69
↓ 1 callers
Method
load_tiles
(&mut self)
src/bin/app_state.rs:63
↓ 1 callers
Method
load_to_gpu
(&self, device: &Device)
src/lib/vector_tile/visible_tile.rs:35
↓ 1 callers
Method
next
(&mut self)
src/lib/math/tile_field.rs:52
↓ 1 callers
Method
paint
( &mut self, app_state: &mut AppState, window: &winit::window::Window, device:
src/bin/drawing/ui/ui.rs:76
↓ 1 callers
Function
parse_one_to_path
( geometry_type: GeomType, geometry: &[u32], cursor: &mut usize, gcursor: &mut Point, )
src/lib/vector_tile/mod.rs:42
↓ 1 callers
Function
paths_to_drawable
( builder: &mut MeshBuilder, geometry_type: GeomType, paths: &[Path], extent: f32, tile_id
src/lib/vector_tile/mod.rs:120
↓ 1 callers
Method
queue_text
(&self, glyph_brush: &mut GlyphBrush<()>, screen: &Screen, z: f32)
src/lib/vector_tile/visible_tile.rs:105
↓ 1 callers
Method
request_tile
Request a tile from the cache.
src/lib/cache.rs:66
↓ 1 callers
Method
resize
(&mut self, width: u32, height: u32)
src/bin/drawing/painter.rs:545
↓ 1 callers
Method
set_center
(&mut self, center: (f32, f32))
src/bin/app_state.rs:167
↓ 1 callers
Method
stats
(&self)
src/lib/vector_tile/tile.rs:268
↓ 1 callers
Function
tesselate_line2
(path: &Path, builder: &mut MeshBuilder, z: u32)
src/lib/drawing/line_tesselator.rs:9
↓ 1 callers
Method
tile_id
(&self)
src/lib/vector_tile/visible_tile.rs:23
↓ 1 callers
Method
try_get_tile
Get a `Tile` from the `TileCache`. Returns `None` if the tile is not in the cache. The user has to request the loading of the `Tile` on their own.
src/lib/cache.rs:113
↓ 1 callers
Method
try_reload_from_file
Tries reloading the cached styles from a file. Returns `true` if it succeeded. Returns `false` in any error case.
src/lib/css.rs:139
↓ 1 callers
Method
update
(&mut self)
src/lib/interaction/tile_collider.rs:44
↓ 1 callers
Method
update_hovered_objects
(&mut self, point: (f32, f32))
src/bin/app_state.rs:144
↓ 1 callers
Method
update_selected_hover_objects
(&mut self)
src/bin/app_state.rs:149
↓ 1 callers
Method
update_shader
Reloads the shader if the file watcher has detected any change to the shader files.
src/bin/drawing/painter.rs:476
↓ 1 callers
Method
update_uniforms
( &mut self, encoder: &mut CommandEncoder, app_state: &AppState, feature_colle
src/bin/drawing/painter.rs:559
Method
_paint
(&self, encoder: &mut wgpu::CommandEncoder, view: &wgpu::TextureView)
src/bin/drawing/weather/temperature.rs:339
Method
_with_class
Makes the selector require the class `class`.
src/lib/css.rs:241
Method
_with_id
Makes the selector require the id `id`.
src/lib/css.rs:235
Method
abort_geometry
(&mut self)
src/lib/drawing/mesh.rs:80
Method
add
(self, rhs: Self)
src/lib/vector_tile/tile.rs:36
Method
add_assign
(&mut self, other: Self)
src/lib/vector_tile/tile.rs:48
Method
add_assign
(&mut self, other: Self)
src/lib/math/tile_id.rs:44
next →
1–100 of 199, ranked by callers