[][src]Struct megumax_template::template::Pool

pub struct Pool { /* fields omitted */ }

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]

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]

Trait Implementations

impl Clone for Pool[src]

impl Debug for Pool[src]

impl Default for Pool[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.