Struct mapbox_vector_tile::Tile
[−]
[src]
pub struct Tile {
pub layers: Vec<Layer>,
}Fields
layers: Vec<Layer>
Methods
impl Tile[src]
pub fn new() -> Self[src]
pub fn add_layer<L: Into<Layer>>(&mut self, l: L)[src]
pub fn from_file(filename: &str) -> Tile[src]
pub fn from_compressed_bytes(bytes: &[u8]) -> Tile[src]
pub fn from_uncompressed_bytes(bytes: &[u8]) -> Tile[src]
pub fn set_locations(&mut self, geometry_tile: &Tile)[src]
pub fn add_feature(&mut self, layer_name: &str, f: Feature)[src]
pub fn to_bytes(self) -> Vec<u8>[src]
pub fn to_compressed_bytes(self) -> Vec<u8>[src]
pub fn write_to<W: Write>(self, writer: &mut W)[src]
pub fn write_to_file(self, filename: &str)[src]
pub fn to_json(&self) -> String[src]
Trait Implementations
impl Debug for Tile[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for Tile[src]
fn eq(&self, __arg_0: &Tile) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Tile) -> bool[src]
This method tests for !=.