pub struct TexBuilder<'config> { /* private fields */ }Expand description
TeX 语言的 AST 构建器
Implementations§
Source§impl<'config> TexBuilder<'config>
impl<'config> TexBuilder<'config>
Sourcepub fn new(config: &'config TexLanguage) -> Self
pub fn new(config: &'config TexLanguage) -> Self
创建新的 TeX 构建器
Trait Implementations§
Source§impl<'config> Builder<TexLanguage> for TexBuilder<'config>
impl<'config> Builder<TexLanguage> for TexBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<TexLanguage>,
) -> BuildOutput<TexLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<TexLanguage>, ) -> BuildOutput<TexLanguage>
Builds the structure from the source text.
Source§impl<'config> Clone for TexBuilder<'config>
impl<'config> Clone for TexBuilder<'config>
Source§fn clone(&self) -> TexBuilder<'config>
fn clone(&self) -> TexBuilder<'config>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'config> Freeze for TexBuilder<'config>
impl<'config> RefUnwindSafe for TexBuilder<'config>
impl<'config> Send for TexBuilder<'config>
impl<'config> Sync for TexBuilder<'config>
impl<'config> Unpin for TexBuilder<'config>
impl<'config> UnwindSafe for TexBuilder<'config>
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