OptPersons

Trait OptPersons 

Source
pub trait OptPersons: MaybePersons + PropertiesBackend {
    // Required methods
    fn author_id(&self, node: NodeId) -> PropertiesResult<'_, Option<u32>, Self>;
    fn committer_id(
        &self,
        node: NodeId,
    ) -> PropertiesResult<'_, Option<u32>, Self>;
}
Expand description

Trait for backend storage of person properties (either in-memory or memory-mapped)

Required Methods§

Source

fn author_id(&self, node: NodeId) -> PropertiesResult<'_, Option<u32>, Self>

Returns None if out of bounds, Some(u32::MAX) if the node has no author

Source

fn committer_id(&self, node: NodeId) -> PropertiesResult<'_, Option<u32>, Self>

Returns None if out of bounds, Some(u32::MAX) if the node has no committer

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§