pub struct FlavourDetector { /* private fields */ }Expand description
Profile selector backed by XMP identification claims.
Implementations§
Source§impl FlavourDetector
impl FlavourDetector
Sourcepub fn new(profiles: Arc<dyn ProfileRepository + Send + Sync>) -> Self
pub fn new(profiles: Arc<dyn ProfileRepository + Send + Sync>) -> Self
Creates a detector backed by a profile repository.
Sourcepub fn detect(
&self,
document: &ParsedDocument,
default: Option<&ValidationFlavour>,
limits: &ResourceLimits,
) -> Result<DetectedFlavours>
pub fn detect( &self, document: &ParsedDocument, default: Option<&ValidationFlavour>, limits: &ResourceLimits, ) -> Result<DetectedFlavours>
Trait Implementations§
Source§impl Clone for FlavourDetector
impl Clone for FlavourDetector
Source§fn clone(&self) -> FlavourDetector
fn clone(&self) -> FlavourDetector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FlavourDetector
impl !RefUnwindSafe for FlavourDetector
impl Send for FlavourDetector
impl Sync for FlavourDetector
impl Unpin for FlavourDetector
impl UnsafeUnpin for FlavourDetector
impl !UnwindSafe for FlavourDetector
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