pub struct MultiFileParseContext {
pub base_path: PathBuf,
pub parsed_files: HashSet<PathBuf>,
pub max_depth: usize,
pub current_depth: usize,
}
Expand description
多文件解析上下文
在解析包含多个文件引用的XML Schema时使用, 用于跟踪解析状态和防止循环引用
Fields§
§base_path: PathBuf
当前文件的基础路径,用于解析相对路径引用
parsed_files: HashSet<PathBuf>
已解析的文件路径集合(用于循环引用检测)
max_depth: usize
解析深度限制,防止无限递归
current_depth: usize
当前解析深度
Trait Implementations§
Source§impl Clone for MultiFileParseContext
impl Clone for MultiFileParseContext
Source§fn clone(&self) -> MultiFileParseContext
fn clone(&self) -> MultiFileParseContext
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 Freeze for MultiFileParseContext
impl RefUnwindSafe for MultiFileParseContext
impl Send for MultiFileParseContext
impl Sync for MultiFileParseContext
impl Unpin for MultiFileParseContext
impl UnwindSafe for MultiFileParseContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more