2020-08-19 22:57:57 +03:00
<!DOCTYPE html> < html lang = "en" > < head > < meta charset = "utf-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < meta name = "generator" content = "rustdoc" > < meta name = "description" content = "API documentation for the Rust `GetDrawAgents` trait in crate `sim`." > < meta name = "keywords" content = "rust, rustlang, rust-lang, GetDrawAgents" > < title > sim::GetDrawAgents - Rust< / title > < link rel = "stylesheet" type = "text/css" href = "../normalize.css" > < link rel = "stylesheet" type = "text/css" href = "../rustdoc.css" id = "mainThemeStyle" > < link rel = "stylesheet" type = "text/css" href = "../dark.css" > < link rel = "stylesheet" type = "text/css" href = "../light.css" id = "themeStyle" > < script src = "../storage.js" > < / script > < noscript > < link rel = "stylesheet" href = "../noscript.css" > < / noscript > < link rel = "shortcut icon" href = "../favicon.ico" > < style type = "text/css" > # crate-search { background-image : url ( "../down-arrow.svg" ) ; } < / style > < / head > < body class = "rustdoc trait" > <!-- [if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif] --> < nav class = "sidebar" > < div class = "sidebar-menu" > ☰ < / div > < a href = '../sim/index.html' > < div class = 'logo-container' > < img src = '../rust-logo.png' alt = 'logo' > < / div > < / a > < p class = 'location' > Trait GetDrawAgents< / p > < div class = "sidebar-elems" > < div class = "block items" > < a class = "sidebar-title" href = "#required-methods" > Required Methods< / a > < div class = "sidebar-links" > < a href = "#tymethod.get_all_draw_cars" > get_all_draw_cars< / a > < a href = "#tymethod.get_all_draw_peds" > get_all_draw_peds< / a > < a href = "#tymethod.get_draw_car" > get_draw_car< / a > < a href = "#tymethod.get_draw_cars" > get_draw_cars< / a > < a href = "#tymethod.get_draw_ped" > get_draw_ped< / a > < a href = "#tymethod.get_draw_peds" > get_draw_peds< / a > < a href = "#tymethod.get_unzoomed_agents" > get_unzoomed_agents< / a > < a href = "#tymethod.step_count" > step_count< / a > < a href = "#tymethod.time" > time< / a > < / div > < a class = "sidebar-title" href = "#implementors" > Implementors< / a > < / div > < p class = 'location' > < a href = 'index.html' > sim< / a > < / p > < script > window . sidebarCurrent = { name : 'GetDrawAgents' , ty : 'trait' , relpath : '' } ; < / script > < script defer src = "sidebar-items.js" > < / script > < / div > < / nav > < div class = "theme-picker" > < button id = "theme-picker" aria-label = "Pick another theme!" > < img src = "../brush.svg" width = "18" alt = "Pick another theme!" > < / button > < div id = "theme-choices" > < / div > < / div > < script src = "../theme.js" > < / script > < nav class = "sub" > < form class = "search-form" > < div class = "search-container" > < div > < select id = "crate-search" > < option value = "All crates" > All crates< / option > < / select > < input class = "search-input" name = "search" disabled autocomplete = "off" spellcheck = "false" placeholder = "Click or press ‘ S’ to search, ‘ ?’ for more options…" type = "search" > < / div > < a id = "settings-menu" href = "../settings.html" > < img src = "../wheel.svg" width = "18" alt = "Change settings" > < / a > < / div > < / form > < / nav > < section id = "main" class = "content" > < h1 class = 'fqn' > < span class = 'out-of-band' > < span id = 'render-detail' > < a id = "toggle-all-docs" href = "javascript:void(0)" title = "collapse all docs" > [< span class = 'inner' > − < / span > ]< / a > < / span > < a class = 'srclink' href = '../src/sim/render.rs.html#67-82' title = 'goto source code' > [src]< / a > < / span > < span class = 'in-band' > Trait < a href = 'index.html' > sim< / a > ::< wbr > < a class = "trait" href = '' > GetDrawAgents< / a > < / span > < / h1 > < div class = "docblock type-decl hidden-by-usual-hider" > < pre class = 'rust trait' > pub trait GetDrawAgents {
fn < a href = '#tymethod.time' class = 'fnname' > time< / a > (& self) -> < a class = "struct" href = "../geom/time/struct.Time.html" title = "struct geom::time::Time" > Time< / a > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.step_count' class = 'fnname' > step_count< / a > (& self) -> < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.usize.html" > usize< / a > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.get_draw_car' class = 'fnname' > get_draw_car< / a > (& self, id: < a class = "struct" href = "../sim/struct.CarID.html" title = "struct sim::CarID" > CarID< / a > , map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "../sim/struct.DrawCarInput.html" title = "struct sim::DrawCarInput" > DrawCarInput< / a > > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.get_draw_ped' class = 'fnname' > get_draw_ped< / a > (< br > & self, < br > id: < a class = "struct" href = "../sim/struct.PedestrianID.html" title = "struct sim::PedestrianID" > PedestrianID< / a > , < br > map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "../sim/struct.DrawPedestrianInput.html" title = "struct sim::DrawPedestrianInput" > DrawPedestrianInput< / a > > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.get_draw_cars' class = 'fnname' > get_draw_cars< / a > (& self, on: < a class = "enum" href = "../map_model/traversable/enum.Traversable.html" title = "enum map_model::traversable::Traversable" > Traversable< / a > , map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawCarInput.html" title = "struct sim::DrawCarInput" > DrawCarInput< / a > > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.get_draw_peds' class = 'fnname' > get_draw_peds< / a > (< br > & self, < br > on: < a class = "enum" href = "../map_model/traversable/enum.Traversable.html" title = "enum map_model::traversable::Traversable" > Traversable< / a > , < br > map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > < br > ) -> < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.tuple.html" > (< / a > < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawPedestrianInput.html" title = "struct sim::DrawPedestrianInput" > DrawPedestrianInput< / a > > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawPedCrowdInput.html" title = "struct sim::DrawPedCrowdInput" > DrawPedCrowdInput< / a > > < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.tuple.html" > )< / a > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.get_all_draw_cars' class = 'fnname' > get_all_draw_cars< / a > (& self, map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawCarInput.html" title = "struct sim::DrawCarInput" > DrawCarInput< / a > > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.get_all_draw_peds' class = 'fnname' > get_all_draw_peds< / a > (& self, map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawPedestrianInput.html" title = "struct sim::DrawPedestrianInput" > DrawPedestrianInput< / a > > ;
< div class = 'item-spacer' > < / div > fn < a href = '#tymethod.get_unzoomed_agents' class = 'fnname' > get_unzoomed_agents< / a > (& self, map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.UnzoomedAgent.html" title = "struct sim::UnzoomedAgent" > UnzoomedAgent< / a > > ;
}< / pre > < / div >
2020-08-27 19:26:30 +03:00
< h2 id = 'required-methods' class = 'small-section-header' > Required methods< a href = '#required-methods' class = 'anchor' > < / a > < / h2 > < div class = 'methods' > < h3 id = 'tymethod.time' class = 'method' > < code > fn < a href = '#tymethod.time' class = 'fnname' > time< / a > (& self) -> < a class = "struct" href = "../geom/time/struct.Time.html" title = "struct geom::time::Time" > Time< / a > < / code > < / h3 > < h3 id = 'tymethod.step_count' class = 'method' > < code > fn < a href = '#tymethod.step_count' class = 'fnname' > step_count< / a > (& self) -> < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.usize.html" > usize< / a > < / code > < / h3 > < h3 id = 'tymethod.get_draw_car' class = 'method' > < code > fn < a href = '#tymethod.get_draw_car' class = 'fnname' > get_draw_car< / a > (& self, id: < a class = "struct" href = "../sim/struct.CarID.html" title = "struct sim::CarID" > CarID< / a > , map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "../sim/struct.DrawCarInput.html" title = "struct sim::DrawCarInput" > DrawCarInput< / a > > < / code > < / h3 > < h3 id = 'tymethod.get_draw_ped' class = 'method' > < code > fn < a href = '#tymethod.get_draw_ped' class = 'fnname' > get_draw_ped< / a > (< br > & self, < br > id: < a class = "struct" href = "../sim/struct.PedestrianID.html" title = "struct sim::PedestrianID" > PedestrianID< / a > , < br > map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "../sim/struct.DrawPedestrianInput.html" title = "struct sim::DrawPedestrianInput" > DrawPedestrianInput< / a > > < / code > < / h3 > < h3 id = 'tymethod.get_draw_cars' class = 'method' > < code > fn < a href = '#tymethod.get_draw_cars' class = 'fnname' > get_draw_cars< / a > (& self, on: < a class = "enum" href = "../map_model/traversable/enum.Traversable.html" title = "enum map_model::traversable::Traversable" > Traversable< / a > , map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawCarInput.html" title = "struct sim::DrawCarInput" > DrawCarInput< / a > > < / code > < / h3 > < h3 id = 'tymethod.get_draw_peds' class = 'method' > < code > fn < a href = '#tymethod.get_draw_peds' class = 'fnname' > get_draw_peds< / a > (< br > & self, < br > on: < a class = "enum" href = "../map_model/traversable/enum.Traversable.html" title = "enum map_model::traversable::Traversable" > Traversable< / a > , < br > map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > < br > ) -> < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.tuple.html" > (< / a > < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawPedestrianInput.html" title = "struct sim::DrawPedestrianInput" > DrawPedestrianInput< / a > > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawPedCrowdInput.html" title = "struct sim::DrawPedCrowdInput" > DrawPedCrowdInput< / a > > < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.tuple.html" > )< / a > < / code > < / h3 > < h3 id = 'tymethod.get_all_draw_cars' class = 'method' > < code > fn < a href = '#tymethod.get_all_draw_cars' class = 'fnname' > get_all_draw_cars< / a > (& self, map: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec:
2020-10-02 04:42:27 +03:00
< h2 id = 'implementors' class = 'small-section-header' > Implementors< a href = '#implementors' class = 'anchor' > < / a > < / h2 > < div class = 'item-list' id = 'implementors-list' > < h3 id = 'impl-GetDrawAgents' class = 'impl' > < code class = 'in-band' > impl GetDrawAgents for < a class = "struct" href = "../sim/struct.DontDrawAgents.html" title = "struct sim::DontDrawAgents" > DontDrawAgents< / a > < / code > < a href = '#impl-GetDrawAgents' class = 'anchor' > < / a > < a class = 'srclink' href = '../src/sim/render.rs.html#86-118' title = 'goto source code' > [src]< / a > < / h3 > < div class = 'impl-items' > < h4 id = 'method.time' class = "method hidden" > < code > fn < a href = '#method.time' class = 'fnname' > time< / a > (& self) -> < a class = "struct" href = "../geom/time/struct.Time.html" title = "struct geom::time::Time" > Time< / a > < / code > < a class = 'srclink' href = '../src/sim/render.rs.html#87-89' title = 'goto source code' > [src]< / a > < / h4 > < h4 id = 'method.step_count' class = "method hidden" > < code > fn < a href = '#method.step_count' class = 'fnname' > step_count< / a > (& self) -> < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.usize.html" > usize< / a > < / code > < a class = 'srclink' href = '../src/sim/render.rs.html#90-92' title = 'goto source code' > [src]< / a > < / h4 > < h4 id = 'method.get_draw_car' class = "method hidden" > < code > fn < a href = '#method.get_draw_car' class = 'fnname' > get_draw_car< / a > (& self, _: < a class = "struct" href = "../sim/struct.CarID.html" title = "struct sim::CarID" > CarID< / a > , _: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "../sim/struct.DrawCarInput.html" title = "struct sim::DrawCarInput" > DrawCarInput< / a > > < / code > < a class = 'srclink' href = '../src/sim/render.rs.html#93-95' title = 'goto source code' > [src]< / a > < / h4 > < h4 id = 'method.get_draw_ped' class = "method hidden" > < code > fn < a href = '#method.get_draw_ped' class = 'fnname' > get_draw_ped< / a > (& self, _: < a class = "struct" href = "../sim/struct.PedestrianID.html" title = "struct sim::PedestrianID" > PedestrianID< / a > , _: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "../sim/struct.DrawPedestrianInput.html" title = "struct sim::DrawPedestrianInput" > DrawPedestrianInput< / a > > < / code > < a class = 'srclink' href = '../src/sim/render.rs.html#96-98' title = 'goto source code' > [src]< / a > < / h4 > < h4 id = 'method.get_draw_cars' class = "method hidden" > < code > fn < a href = '#method.get_draw_cars' class = 'fnname' > get_draw_cars< / a > (& self, _: < a class = "enum" href = "../map_model/traversable/enum.Traversable.html" title = "enum map_model::traversable::Traversable" > Traversable< / a > , _: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawCarInput.html" title = "struct sim::DrawCarInput" > DrawCarInput< / a > > < / code > < a class = 'srclink' href = '../src/sim/render.rs.html#99-101' title = 'goto source code' > [src]< / a > < / h4 > < h4 id = 'method.get_draw_peds' class = "method hidden" > < code > fn < a href = '#method.get_draw_peds' class = 'fnname' > get_draw_peds< / a > (< br > & self, < br > _: < a class = "enum" href = "../map_model/traversable/enum.Traversable.html" title = "enum map_model::traversable::Traversable" > Traversable< / a > , < br > _: & < a class = "struct" href = "../map_model/struct.Map.html" title = "struct map_model::Map" > Map< / a > < br > ) -> < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.tuple.html" > (< / a > < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "../sim/struct.DrawPedestrianInput.html" title = "struct sim::Dra