Struct quantized_density_fields::qdf::QDF [−][src]
pub struct QDF<S> where
S: State, { /* fields omitted */ }Methods
impl<S> QDF<S> where
S: State, [src]
impl<S> QDF<S> where
S: State, pub fn new(dimensions: usize, root_state: S) -> Self[src]
pub fn new(dimensions: usize, root_state: S) -> Selfpub fn id(&self) -> ID[src]
pub fn id(&self) -> IDpub fn root(&self) -> ID[src]
pub fn root(&self) -> IDpub fn dimensions(&self) -> usize[src]
pub fn dimensions(&self) -> usizepub fn state(&self) -> &S[src]
pub fn state(&self) -> &Spub fn space_exists(&self, id: ID) -> bool[src]
pub fn space_exists(&self, id: ID) -> boolpub fn try_get_space(&self, id: ID) -> Option<&Space<S>>[src]
pub fn try_get_space(&self, id: ID) -> Option<&Space<S>>pub fn get_space(&self, id: ID) -> Result<&Space<S>>[src]
pub fn get_space(&self, id: ID) -> Result<&Space<S>>pub fn space(&self, id: ID) -> &Space<S>[src]
pub fn space(&self, id: ID) -> &Space<S>pub fn try_set_space_state(&mut self, id: ID, state: S) -> bool[src]
pub fn try_set_space_state(&mut self, id: ID, state: S) -> boolpub fn set_space_state(&mut self, id: ID, state: S) -> Result<()>[src]
pub fn set_space_state(&mut self, id: ID, state: S) -> Result<()>pub fn find_space_neighbors(&self, id: ID) -> Result<Vec<ID>>[src]
pub fn find_space_neighbors(&self, id: ID) -> Result<Vec<ID>>pub fn find_path(&self, from: ID, to: ID) -> Result<Vec<ID>>[src]
pub fn find_path(&self, from: ID, to: ID) -> Result<Vec<ID>>pub fn increase_space_density(&mut self, id: ID) -> Result<()>[src]
pub fn increase_space_density(&mut self, id: ID) -> Result<()>pub fn decrease_space_density(&mut self, id: ID) -> Result<bool>[src]
pub fn decrease_space_density(&mut self, id: ID) -> Result<bool>pub fn decrease_space_density_level(&mut self, id: ID) -> Result<()>[src]
pub fn decrease_space_density_level(&mut self, id: ID) -> Result<()>