pub struct FeatureDetector;Expand description
Excel file feature detector
This struct provides methods to detect potentially unsupported features in Excel files before attempting operations that may fail or lose data.
Implementations§
Source§impl FeatureDetector
impl FeatureDetector
Sourcepub fn detect_potential_issues(_path: &str) -> Result<Vec<UnsupportedFeature>>
pub fn detect_potential_issues(_path: &str) -> Result<Vec<UnsupportedFeature>>
Detect features that may affect read/write operations
This is a placeholder for future implementation. Currently, calamine doesn’t expose detailed feature information. This would be enhanced when using a more advanced Excel library or adding custom parsing.
Sourcepub fn heuristic_check(path: &str) -> Vec<UnsupportedFeature>
pub fn heuristic_check(path: &str) -> Vec<UnsupportedFeature>
Check if a file is likely to contain unsupported features
This is a heuristic check based on file extension and size. Complex Excel files (large, multiple sheets) are more likely to have unsupported features.
Sourcepub fn validate_for_write(path: &str) -> Result<()>
pub fn validate_for_write(path: &str) -> Result<()>
Validate that a file doesn’t contain features that would prevent write operations
Auto Trait Implementations§
impl Freeze for FeatureDetector
impl RefUnwindSafe for FeatureDetector
impl Send for FeatureDetector
impl Sync for FeatureDetector
impl Unpin for FeatureDetector
impl UnsafeUnpin for FeatureDetector
impl UnwindSafe for FeatureDetector
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> 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