pub struct CryptParserServer { /* private fields */ }Expand description
Sets up a parsing server for parsing crypt files.
§Example
use crypt_config::{CryptParserServer, Cryptic};
#[derive(Cryptic)]
struct MyStruct {
str: String
}
let mut server = CryptParserServer::new();
let my_struct: MyStruct = server.open("path/to/my/file.crypt").expect("Failed to parse file");The parser will automatically convert the resulting crypt file into the desired Cryptic type.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CryptParserServer
impl !Send for CryptParserServer
impl !Sync for CryptParserServer
impl !UnwindSafe for CryptParserServer
impl Freeze for CryptParserServer
impl Unpin for CryptParserServer
impl UnsafeUnpin for CryptParserServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more