Trait hyperscan::SerializedDatabase
source · [−]pub trait SerializedDatabase {
type Error: Debug;
fn size(&self) -> StdResult<usize, Self::Error>;
fn info(&self) -> StdResult<String, Self::Error>;
fn deserialize<M>(&self) -> StdResult<Database<M>, Self::Error>;
}
Expand description
A serialized database
Required Associated Types
Required Methods
Reporting the size that would be required by a database if it were deserialized.
Providing information about a serialized database.
sourcefn deserialize<M>(&self) -> StdResult<Database<M>, Self::Error>
fn deserialize<M>(&self) -> StdResult<Database<M>, Self::Error>
Reconstruct a pattern database from a stream of bytes previously generated by Database::serialize()
.