rscel 1.0.8

Cel interpreter in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::macros::dispatch;

pub use methods::dispatch as trim_matches;

#[dispatch]
mod methods {
    use crate::CelValue;

    fn trim_matches(this: String, pattern: String) -> String {
        this.trim_matches(|c: char| pattern.contains(c)).to_owned()
    }
}