pub enum ModulatorCollisionPolicy {
ReuseHost,
RenameGuest {
block_title: String,
},
}Expand description
What to do when a guest modulator name already exists in the host.
Variants§
ReuseHost
Same-brain clone: use the host modulator of that name. Host settings win.
RenameGuest
External genome: rename the guest modulator to <name> (<block_title>), then append
2, 3, … until the name is free.
Trait Implementations§
Source§impl Clone for ModulatorCollisionPolicy
impl Clone for ModulatorCollisionPolicy
Source§impl Debug for ModulatorCollisionPolicy
impl Debug for ModulatorCollisionPolicy
impl Eq for ModulatorCollisionPolicy
Source§impl PartialEq for ModulatorCollisionPolicy
impl PartialEq for ModulatorCollisionPolicy
impl StructuralPartialEq for ModulatorCollisionPolicy
Auto Trait Implementations§
impl Forget for ModulatorCollisionPolicy
impl Freeze for ModulatorCollisionPolicy
impl Move for ModulatorCollisionPolicy
impl RefUnwindSafe for ModulatorCollisionPolicy
impl Send for ModulatorCollisionPolicy
impl Sync for ModulatorCollisionPolicy
impl Unpin for ModulatorCollisionPolicy
impl UnsafeUnpin for ModulatorCollisionPolicy
impl UnwindSafe for ModulatorCollisionPolicy
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more