pub struct DuplicateName {
pub name: String,
pub files: Vec<String>,
}Expand description
A display name claimed by more than one file that compiles.
Only the first file is reachable: load_dir sorts by filename and
Renderer::select_preset_by_name takes the first exact match, so every
later claimant is loaded, rotated through, and unreachable by name.
Fields§
§name: StringThe contested display name.
files: Vec<String>The files claiming it, in filename order. Never shorter than two.
Implementations§
Trait Implementations§
Source§impl Clone for DuplicateName
impl Clone for DuplicateName
Source§fn clone(&self) -> DuplicateName
fn clone(&self) -> DuplicateName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DuplicateName
impl Debug for DuplicateName
Source§impl PartialEq for DuplicateName
impl PartialEq for DuplicateName
Source§fn eq(&self, other: &DuplicateName) -> bool
fn eq(&self, other: &DuplicateName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DuplicateName
impl StructuralPartialEq for DuplicateName
Auto Trait Implementations§
impl Freeze for DuplicateName
impl RefUnwindSafe for DuplicateName
impl Send for DuplicateName
impl Sync for DuplicateName
impl Unpin for DuplicateName
impl UnsafeUnpin for DuplicateName
impl UnwindSafe for DuplicateName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.