pub struct Embed {
pub data: String,
pub path: PathBuf,
pub type_id_dict: HashMap<String, String>,
}Fields§
§data: String§path: PathBuf§type_id_dict: HashMap<String, String>Implementations§
Source§impl Embed
impl Embed
pub fn new(path: PathBuf, data: String) -> Self
pub fn replace_data(&mut self) -> &mut Self
pub fn replace_hash(&mut self) -> &mut Self
pub fn prelude_type_id(&mut self) -> &mut Self
pub fn replace_def_type(&mut self) -> &mut Self
pub fn replace_ref_type(&mut self) -> &mut Self
pub fn replace_all(&mut self) -> String
Auto Trait Implementations§
impl Freeze for Embed
impl RefUnwindSafe for Embed
impl Send for Embed
impl Sync for Embed
impl Unpin for Embed
impl UnwindSafe for Embed
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more