pub struct ParseContext<'i> {Show 15 fields
pub recursion_depth: usize,
pub trim_depth: usize,
pub inside_header: bool,
pub inside_bold: bool,
pub inside_italic: bool,
pub inside_strikethrough: bool,
pub inside_subscript: bool,
pub inside_superscript: bool,
pub inside_underline: bool,
pub inside_footnote: bool,
pub inside_media_element: bool,
pub original_input: &'i [u8],
pub max_recursion_depth: usize,
pub section_counter: usize,
pub footnote_counter: usize,
}Fields§
§recursion_depth: usize§trim_depth: usize§inside_header: bool§inside_bold: bool§inside_italic: bool§inside_strikethrough: bool§inside_subscript: bool§inside_superscript: bool§inside_underline: bool§inside_footnote: bool§inside_media_element: bool§original_input: &'i [u8]§max_recursion_depth: usize§section_counter: usize§footnote_counter: usizeImplementations§
Source§impl<'i> ParseContext<'i>
impl<'i> ParseContext<'i>
Sourcepub fn is_at_line_start(&self, position: usize) -> bool
pub fn is_at_line_start(&self, position: usize) -> bool
현재 위치가 라인 시작인지 확인
Sourcepub fn increase_depth(&mut self) -> Result<(), SevenMarkError>
pub fn increase_depth(&mut self) -> Result<(), SevenMarkError>
재귀 깊이 증가 (in-place)
Sourcepub fn decrease_depth(&mut self)
pub fn decrease_depth(&mut self)
재귀 깊이 감소 (in-place)
Sourcepub fn is_at_max_depth(&self) -> bool
pub fn is_at_max_depth(&self) -> bool
최대 재귀 깊이에 도달했는지 확인
Sourcepub fn current_depth(&self) -> usize
pub fn current_depth(&self) -> usize
현재 재귀 깊이 반환
Sourcepub fn remaining_depth(&self) -> usize
pub fn remaining_depth(&self) -> usize
남은 재귀 깊이 반환
Sourcepub fn next_section_index(&mut self) -> usize
pub fn next_section_index(&mut self) -> usize
다음 섹션 인덱스 반환 및 카운터 증가
Sourcepub fn next_footnote_index(&mut self) -> usize
pub fn next_footnote_index(&mut self) -> usize
다음 각주 인덱스 반환 및 카운터 증가
Sourcepub fn increase_trim_depth(&mut self)
pub fn increase_trim_depth(&mut self)
trim_depth 증가
Sourcepub fn decrease_trim_depth(&mut self)
pub fn decrease_trim_depth(&mut self)
trim_depth 감소
Sourcepub fn is_trimming(&self) -> bool
pub fn is_trimming(&self) -> bool
trim 컨텍스트 안에 있는지 확인
Sourcepub fn set_header_context(&mut self)
pub fn set_header_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_header_context(&mut self)
pub fn unset_header_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_bold_context(&mut self)
pub fn set_bold_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_bold_context(&mut self)
pub fn unset_bold_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_italic_context(&mut self)
pub fn set_italic_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_italic_context(&mut self)
pub fn unset_italic_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_strikethrough_context(&mut self)
pub fn set_strikethrough_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_strikethrough_context(&mut self)
pub fn unset_strikethrough_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_subscript_context(&mut self)
pub fn set_subscript_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_subscript_context(&mut self)
pub fn unset_subscript_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_superscript_context(&mut self)
pub fn set_superscript_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_superscript_context(&mut self)
pub fn unset_superscript_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_underline_context(&mut self)
pub fn set_underline_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_underline_context(&mut self)
pub fn unset_underline_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_footnote_context(&mut self)
pub fn set_footnote_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_footnote_context(&mut self)
pub fn unset_footnote_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Sourcepub fn set_media_element_context(&mut self)
pub fn set_media_element_context(&mut self)
[<$name:upper>] 컨텍스트로 전환
Sourcepub fn unset_media_element_context(&mut self)
pub fn unset_media_element_context(&mut self)
[<$name:upper>] 컨텍스트 해제
Trait Implementations§
Source§impl<'i> Clone for ParseContext<'i>
impl<'i> Clone for ParseContext<'i>
Source§fn clone(&self) -> ParseContext<'i>
fn clone(&self) -> ParseContext<'i>
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<'i> Freeze for ParseContext<'i>
impl<'i> RefUnwindSafe for ParseContext<'i>
impl<'i> Send for ParseContext<'i>
impl<'i> Sync for ParseContext<'i>
impl<'i> Unpin for ParseContext<'i>
impl<'i> UnwindSafe for ParseContext<'i>
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