Docs.rs
rust_sensitive-1.1.0
rust_sensitive 1.1.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
wqwqzzz
Dependencies
aho-corasick ^1.1.3
normal
Versions
0%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
AcSensitiveWordMap
rust_
sensitive
1.1.0
AcSensitive
Word
Map
Aliased Type
Trait Implementations
MyTrait
In rust_
sensitive::
model
rust_sensitive
::
model
Type Alias
AcSensitive
Word
Map
Copy item path
Source
pub type AcSensitiveWordMap =
AhoCorasick
;
Aliased Type
§
pub struct AcSensitiveWordMap {
/* private fields */
}
Trait Implementations
§
Source
§
impl
MyTrait
for
AcSensitiveWordMap
Source
§
fn
init_ac_dic_from_file
(file_path: &
str
) -> &'static
AcSensitiveWordMap
Source
§
fn
get_ac_dic
() -> &'static
AcSensitiveWordMap
Source
§
fn
filter
(&self, text: &
str
) ->
String
Source
§
fn
replace
(&self, text: &
str
, repl: &
str
) ->
String
Source
§
fn
is_sensitive
(&self, text: &
str
) ->
bool
Source
§
fn
find_one
(&self, text: &
str
) ->
String
Source
§
fn
find_all
(&self, text: &
str
) ->
Vec
<
String
>