Struct jj_lib::revset::RevsetAliasesMap
source · pub struct RevsetAliasesMap { /* private fields */ }
Implementations§
source§impl RevsetAliasesMap
impl RevsetAliasesMap
pub fn new() -> Self
sourcepub fn insert(
&mut self,
decl: impl AsRef<str>,
defn: impl Into<String>
) -> Result<(), RevsetParseError>
pub fn insert( &mut self, decl: impl AsRef<str>, defn: impl Into<String> ) -> Result<(), RevsetParseError>
Adds new substitution rule decl = defn
.
Returns error if decl
is invalid. The defn
part isn’t checked. A bad
defn
will be reported when the alias is substituted.
pub fn get_symbol(&self, name: &str) -> Option<&str>
pub fn get_function(&self, name: &str) -> Option<(&[String], &str)>
Trait Implementations§
source§impl Clone for RevsetAliasesMap
impl Clone for RevsetAliasesMap
source§fn clone(&self) -> RevsetAliasesMap
fn clone(&self) -> RevsetAliasesMap
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RevsetAliasesMap
impl Debug for RevsetAliasesMap
source§impl Default for RevsetAliasesMap
impl Default for RevsetAliasesMap
source§fn default() -> RevsetAliasesMap
fn default() -> RevsetAliasesMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RevsetAliasesMap
impl Send for RevsetAliasesMap
impl Sync for RevsetAliasesMap
impl Unpin for RevsetAliasesMap
impl UnwindSafe for RevsetAliasesMap
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