pub struct NamingScope<'a> {
pub config: &'a NamingConfig,
pub colliding_albums: &'a BTreeSet<String>,
pub colliding_ids: &'a BTreeSet<String>,
}Expand description
How clip names are rendered: the template configuration plus the two archive-wide collision sets that disambiguate it.
The three always travel together — render_clip_names takes exactly this
trio — and two of them are same-typed &BTreeSet<String> sitting adjacent,
which is transposable in a positional call and would silently disambiguate
the wrong axis.
Fields§
§config: &'a NamingConfig§colliding_albums: &'a BTreeSet<String>Root titles shared by more than one root; a clip under one is folded into
a [{root_id8}]-suffixed folder so two roots never share a directory.
colliding_ids: &'a BTreeSet<String>Clip ids sharing an {id8} with another distinct clip archive-wide; a
clip in the set gets a stable full-id suffix regardless of the batch (#356).
Auto Trait Implementations§
impl<'a> Freeze for NamingScope<'a>
impl<'a> RefUnwindSafe for NamingScope<'a>
impl<'a> Send for NamingScope<'a>
impl<'a> Sync for NamingScope<'a>
impl<'a> Unpin for NamingScope<'a>
impl<'a> UnsafeUnpin for NamingScope<'a>
impl<'a> UnwindSafe for NamingScope<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more