pub enum ToolScope {
Read(Scope),
Trade,
}Expand description
工具需要的 scope 类别
Read 类的 scope(qot:read / acc:read)是静态确定的;Trade 类在运行时根据
env=real/simulate 派发到 Scope::TradeReal / Scope::TradeSimulate。
Variants§
Trait Implementations§
impl Copy for ToolScope
impl Eq for ToolScope
impl StructuralPartialEq for ToolScope
Auto Trait Implementations§
impl Freeze for ToolScope
impl RefUnwindSafe for ToolScope
impl Send for ToolScope
impl Sync for ToolScope
impl Unpin for ToolScope
impl UnwindSafe for ToolScope
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
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.