[−][src]Struct megumax_template::template::Pool
Implementations
impl Pool
[src]
pub fn new(capture_rule: Regex) -> Self
[src]
pub fn default_rule() -> Self
[src]
pub fn get(&self, key: &str) -> Option<&[String]>
[src]
pub fn insert(&mut self, key: String, value: Vec<String>)
[src]
pub fn append(&mut self, key: impl Into<String>, value: impl Into<String>)
[src]
pub fn intersect(
&self,
keys: &[String]
) -> Result<Vec<&[String]>, KeyLookUpError>
[src]
&self,
keys: &[String]
) -> Result<Vec<&[String]>, KeyLookUpError>
impl Pool
[src]
pub fn capture(&self, content: &str) -> Vec<String>
[src]
pub fn template_resources<P: Into<String>>(
&self,
path: P
) -> Result<Resources<'_>, KeyLookUpError>
[src]
&self,
path: P
) -> Result<Resources<'_>, KeyLookUpError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnwindSafe for Pool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,