pub(crate) struct Bif<'a> {Show 18 fields
pub(crate) raw: &'a str,
pub(crate) shared: &'a mut Shared,
pub(crate) inherit: &'a mut BlockInherit,
pub(crate) src: String,
pub(crate) name: String,
pub(crate) alias: String,
pub(crate) code: String,
pub(crate) params: String,
pub(crate) flags: String,
pub(crate) mod_filter: bool,
pub(crate) mod_negate: bool,
pub(crate) mod_upline: bool,
pub(crate) mod_scope: bool,
pub(crate) file_path: String,
pub(crate) dir: String,
pub(crate) out: String,
pub(crate) only: &'a str,
_none: &'a str,
}
Fields§
§raw: &'a str
§inherit: &'a mut BlockInherit
§src: String
§name: String
§alias: String
§code: String
§params: String
§flags: String
§mod_filter: bool
§mod_negate: bool
§mod_upline: bool
§mod_scope: bool
§file_path: String
§dir: String
§out: String
§only: &'a str
§_none: &'a str
Implementations§
Source§impl<'a> Bif<'a>
impl<'a> Bif<'a>
pub(crate) fn parse_bif_cache(&mut self) -> Result<(), BifError>
pub(crate) fn cache_file_expires(&self, file_path: &Path, expires: u64) -> bool
pub(crate) fn set_cache_dir(&self, cache_dir: &str) -> Result<(), BifError>
pub(crate) fn get_cache_dir(&self, file: &str) -> String
Source§impl<'a> Bif<'a>
impl<'a> Bif<'a>
pub(crate) fn parse_bif_obj(&mut self) -> Result<(), BifError>
fn parse_obj_values(&mut self, value: &mut Value, is_recursive_call: bool)
Source§impl<'a> Bif<'a>
impl<'a> Bif<'a>
pub(crate) fn new( raw_source: &'a str, shared: &'a mut Shared, inherit: &'a mut BlockInherit, only: &'a str, ) -> Self
pub(crate) fn parse(&mut self) -> String
pub(crate) fn set_modifiers(&mut self) -> String
pub(crate) fn get_data(&self, name: &str) -> String
pub(crate) fn set_data(&mut self, name: &str, value: &str)
pub(crate) fn get_trans(&self, text: &str) -> String
pub(crate) fn contains_allow(&self, source: &str) -> bool
pub(crate) fn extract_params_code(&mut self, parse: bool) -> bool
pub(crate) fn extract_args(&mut self) -> Vec<String>
pub(crate) fn bif_error(&self, msg: &str) -> BifError
Auto Trait Implementations§
impl<'a> Freeze for Bif<'a>
impl<'a> RefUnwindSafe for Bif<'a>
impl<'a> Send for Bif<'a>
impl<'a> Sync for Bif<'a>
impl<'a> Unpin for Bif<'a>
impl<'a> !UnwindSafe for Bif<'a>
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