pub struct InMemoryToolsRepository;Expand description
Drawing tool lookup backed by categories.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryToolsRepository
impl Default for InMemoryToolsRepository
Source§impl DrawingToolsRepository for InMemoryToolsRepository
impl DrawingToolsRepository for InMemoryToolsRepository
Source§fn get_all_categories(&self) -> Vec<String>
fn get_all_categories(&self) -> Vec<String>
Get all available category names in display order
Source§fn get_category_tools(
&self,
category: &str,
) -> Vec<(String, Vec<DrawingToolType>)>
fn get_category_tools( &self, category: &str, ) -> Vec<(String, Vec<DrawingToolType>)>
Get all tools for a specific category, organized by sections Read more
Source§fn get_tool_category(&self, tool: DrawingToolType) -> Option<String>
fn get_tool_category(&self, tool: DrawingToolType) -> Option<String>
Get the category that a tool belongs to
Source§fn search_tools(&self, query: &str) -> Vec<DrawingToolType>
fn search_tools(&self, query: &str) -> Vec<DrawingToolType>
Search tools by query string (case-insensitive)
Auto Trait Implementations§
impl Freeze for InMemoryToolsRepository
impl RefUnwindSafe for InMemoryToolsRepository
impl Send for InMemoryToolsRepository
impl Sync for InMemoryToolsRepository
impl Unpin for InMemoryToolsRepository
impl UnsafeUnpin for InMemoryToolsRepository
impl UnwindSafe for InMemoryToolsRepository
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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