pub struct WindowsPathNormalizer;Expand description
Windows-specific path normalizer implementation
Implementations§
Trait Implementations§
Source§impl Default for WindowsPathNormalizer
impl Default for WindowsPathNormalizer
Source§impl PathNormalizer for WindowsPathNormalizer
impl PathNormalizer for WindowsPathNormalizer
Source§fn to_canonical(&self, path: &Path) -> Result<String, PathNormalizationError>
fn to_canonical(&self, path: &Path) -> Result<String, PathNormalizationError>
Convert any path to canonical database format (lowercase, absolute paths with forward slashes)
Source§fn from_canonical(
&self,
canonical: &str,
) -> Result<PathBuf, PathNormalizationError>
fn from_canonical( &self, canonical: &str, ) -> Result<PathBuf, PathNormalizationError>
Convert canonical format back to platform path
Source§fn normalize_for_query(
&self,
path: &Path,
) -> Result<String, PathNormalizationError>
fn normalize_for_query( &self, path: &Path, ) -> Result<String, PathNormalizationError>
Normalize path for database queries (same as to_canonical but with explicit intent)
Auto Trait Implementations§
impl Freeze for WindowsPathNormalizer
impl RefUnwindSafe for WindowsPathNormalizer
impl Send for WindowsPathNormalizer
impl Sync for WindowsPathNormalizer
impl Unpin for WindowsPathNormalizer
impl UnwindSafe for WindowsPathNormalizer
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