ReadonlyIndex

Trait ReadonlyIndex 

Source
pub trait ReadonlyIndex:
    Any
    + Send
    + Sync {
    // Required methods
    fn as_index(&self) -> &dyn Index;
    fn change_id_index(
        &self,
        heads: &mut dyn Iterator<Item = &CommitId>,
    ) -> Box<dyn ChangeIdIndex>;
    fn start_modification(&self) -> Box<dyn MutableIndex>;
}

Required Methods§

Source

fn as_index(&self) -> &dyn Index

Source

fn change_id_index( &self, heads: &mut dyn Iterator<Item = &CommitId>, ) -> Box<dyn ChangeIdIndex>

Source

fn start_modification(&self) -> Box<dyn MutableIndex>

Implementations§

Source§

impl dyn ReadonlyIndex

Source

pub fn downcast_ref<T: ReadonlyIndex>(&self) -> Option<&T>

Returns reference of the implementation type.

Implementors§