Struct bat_impl::SyntaxMapping
source · [−]pub struct SyntaxMapping<'a> { /* private fields */ }
Implementations
sourceimpl<'a> SyntaxMapping<'a>
impl<'a> SyntaxMapping<'a>
pub fn empty() -> SyntaxMapping<'a>
pub fn builtin() -> SyntaxMapping<'a>
pub fn insert(&mut self, from: &str, to: MappingTarget<'a>) -> Result<()>
pub fn mappings(&self) -> &[(GlobMatcher, MappingTarget<'a>)]
pub fn insert_ignored_suffix(&mut self, suffix: &'a str)
Trait Implementations
sourceimpl<'a> Clone for SyntaxMapping<'a>
impl<'a> Clone for SyntaxMapping<'a>
sourcefn clone(&self) -> SyntaxMapping<'a>
fn clone(&self) -> SyntaxMapping<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for SyntaxMapping<'a>
impl<'a> Debug for SyntaxMapping<'a>
sourceimpl<'a> Default for SyntaxMapping<'a>
impl<'a> Default for SyntaxMapping<'a>
sourcefn default() -> SyntaxMapping<'a>
fn default() -> SyntaxMapping<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for SyntaxMapping<'a>
impl<'a> Send for SyntaxMapping<'a>
impl<'a> Sync for SyntaxMapping<'a>
impl<'a> Unpin for SyntaxMapping<'a>
impl<'a> UnwindSafe for SyntaxMapping<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more