MCPcopy Create free account
hub / github.com/emwalker/digraph / new

Method new

backend/src/git/types.rs:587–599  ·  view source on GitHub ↗
(client: &'c Client, repo: RepoId, topic: Option<RepoTopic>)

Source from the content-addressed store, hash-verified

585
586impl<'c> TopicDownsetIter<'c> {
587 pub fn new(client: &'c Client, repo: RepoId, topic: Option<RepoTopic>) -> Self {
588 let mut stack = vec![];
589 if let Some(topic) = &topic {
590 stack.push(topic.to_topic_child(chrono::Utc::now()));
591 }
592
593 Self {
594 client,
595 seen: HashSet::new(),
596 repo_id: repo,
597 stack,
598 }
599 }
600}
601
602#[derive(Debug)]

Callers

nothing calls this directly

Calls 1

to_topic_childMethod · 0.80

Tested by

no test coverage detected