hunch 2.0.2

A media filename parser for movies, TV, and anime — built in Rust, inspired by guessit
Documentation
pub mod hunch
#[non_exhaustive] pub enum hunch::Confidence
pub hunch::Confidence::High
pub hunch::Confidence::Low
pub hunch::Confidence::Medium
impl core::clone::Clone for hunch::Confidence
pub fn hunch::Confidence::clone(&self) -> hunch::Confidence
impl core::cmp::Eq for hunch::Confidence
impl core::cmp::Ord for hunch::Confidence
pub fn hunch::Confidence::cmp(&self, other: &hunch::Confidence) -> core::cmp::Ordering
impl core::cmp::PartialEq for hunch::Confidence
pub fn hunch::Confidence::eq(&self, other: &hunch::Confidence) -> bool
impl core::cmp::PartialOrd for hunch::Confidence
pub fn hunch::Confidence::partial_cmp(&self, other: &hunch::Confidence) -> core::option::Option<core::cmp::Ordering>
impl core::fmt::Debug for hunch::Confidence
pub fn hunch::Confidence::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for hunch::Confidence
impl core::marker::StructuralPartialEq for hunch::Confidence
impl serde_core::ser::Serialize for hunch::Confidence
pub fn hunch::Confidence::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde_core::ser::Serializer>::Ok, <__S as serde_core::ser::Serializer>::Error> where __S: serde_core::ser::Serializer
impl core::marker::Freeze for hunch::Confidence
impl core::marker::Send for hunch::Confidence
impl core::marker::Sync for hunch::Confidence
impl core::marker::Unpin for hunch::Confidence
impl core::marker::UnsafeUnpin for hunch::Confidence
impl core::panic::unwind_safe::RefUnwindSafe for hunch::Confidence
impl core::panic::unwind_safe::UnwindSafe for hunch::Confidence
#[non_exhaustive] pub enum hunch::MediaType
pub hunch::MediaType::Episode
pub hunch::MediaType::Extra
pub hunch::MediaType::Movie
impl core::clone::Clone for hunch::MediaType
pub fn hunch::MediaType::clone(&self) -> hunch::MediaType
impl core::cmp::Eq for hunch::MediaType
impl core::cmp::PartialEq for hunch::MediaType
pub fn hunch::MediaType::eq(&self, other: &hunch::MediaType) -> bool
impl core::fmt::Debug for hunch::MediaType
pub fn hunch::MediaType::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for hunch::MediaType
impl core::marker::StructuralPartialEq for hunch::MediaType
impl serde_core::ser::Serialize for hunch::MediaType
pub fn hunch::MediaType::serialize<__S>(&self, __serializer: __S) -> core::result::Result<<__S as serde_core::ser::Serializer>::Ok, <__S as serde_core::ser::Serializer>::Error> where __S: serde_core::ser::Serializer
impl core::marker::Freeze for hunch::MediaType
impl core::marker::Send for hunch::MediaType
impl core::marker::Sync for hunch::MediaType
impl core::marker::Unpin for hunch::MediaType
impl core::marker::UnsafeUnpin for hunch::MediaType
impl core::panic::unwind_safe::RefUnwindSafe for hunch::MediaType
impl core::panic::unwind_safe::UnwindSafe for hunch::MediaType
#[non_exhaustive] pub enum hunch::Property
pub hunch::Property::AbsoluteEpisode
pub hunch::Property::AlternativeTitle
pub hunch::Property::AspectRatio
pub hunch::Property::AudioBitRate
pub hunch::Property::AudioChannels
pub hunch::Property::AudioCodec
pub hunch::Property::AudioProfile
pub hunch::Property::Bonus
pub hunch::Property::BonusTitle
pub hunch::Property::Cd
pub hunch::Property::CdCount
pub hunch::Property::ColorDepth
pub hunch::Property::Container
pub hunch::Property::Country
pub hunch::Property::Crc
pub hunch::Property::Date
pub hunch::Property::Disc
pub hunch::Property::Edition
pub hunch::Property::Episode
pub hunch::Property::EpisodeCount
pub hunch::Property::EpisodeDetails
pub hunch::Property::EpisodeFormat
pub hunch::Property::EpisodeTitle
pub hunch::Property::Film
pub hunch::Property::FilmTitle
pub hunch::Property::FrameRate
pub hunch::Property::Language
pub hunch::Property::MediaType
pub hunch::Property::Mimetype
pub hunch::Property::Other
pub hunch::Property::Part
pub hunch::Property::ProperCount
pub hunch::Property::ReleaseGroup
pub hunch::Property::ScreenSize
pub hunch::Property::Season
pub hunch::Property::SeasonCount
pub hunch::Property::Size
pub hunch::Property::Source
pub hunch::Property::StreamingService
pub hunch::Property::SubtitleLanguage
pub hunch::Property::Title
pub hunch::Property::Uuid
pub hunch::Property::Version
pub hunch::Property::VideoApi
pub hunch::Property::VideoBitRate
pub hunch::Property::VideoCodec
pub hunch::Property::VideoProfile
pub hunch::Property::Website
pub hunch::Property::Week
pub hunch::Property::Year
impl hunch::Property
pub fn hunch::Property::from_name(name: &str) -> core::option::Option<Self>
impl hunch::Property
pub fn hunch::Property::is_numeric(&self) -> bool
impl core::clone::Clone for hunch::Property
pub fn hunch::Property::clone(&self) -> hunch::Property
impl core::cmp::Eq for hunch::Property
impl core::cmp::Ord for hunch::Property
pub fn hunch::Property::cmp(&self, other: &hunch::Property) -> core::cmp::Ordering
impl core::cmp::PartialEq for hunch::Property
pub fn hunch::Property::eq(&self, other: &hunch::Property) -> bool
impl core::cmp::PartialOrd for hunch::Property
pub fn hunch::Property::partial_cmp(&self, other: &hunch::Property) -> core::option::Option<core::cmp::Ordering>
impl core::fmt::Debug for hunch::Property
pub fn hunch::Property::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for hunch::Property
pub fn hunch::Property::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::hash::Hash for hunch::Property
pub fn hunch::Property::hash<__H: core::hash::Hasher>(&self, state: &mut __H)
impl core::marker::Copy for hunch::Property
impl core::marker::StructuralPartialEq for hunch::Property
impl core::marker::Freeze for hunch::Property
impl core::marker::Send for hunch::Property
impl core::marker::Sync for hunch::Property
impl core::marker::Unpin for hunch::Property
impl core::marker::UnsafeUnpin for hunch::Property
impl core::panic::unwind_safe::RefUnwindSafe for hunch::Property
impl core::panic::unwind_safe::UnwindSafe for hunch::Property
pub struct hunch::HunchResult
impl hunch::HunchResult
pub fn hunch::HunchResult::all(&self, property: hunch::Property) -> alloc::vec::Vec<&str>
pub fn hunch::HunchResult::audio_bit_rate(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::audio_channels(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::audio_codec(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::bonus(&self) -> core::option::Option<i32>
pub fn hunch::HunchResult::color_depth(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::confidence(&self) -> hunch::Confidence
pub fn hunch::HunchResult::container(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::date(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::disc(&self) -> core::option::Option<i32>
pub fn hunch::HunchResult::edition(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::episode(&self) -> core::option::Option<i32>
pub fn hunch::HunchResult::episode_details(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::episode_title(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::film(&self) -> core::option::Option<i32>
pub fn hunch::HunchResult::first(&self, property: hunch::Property) -> core::option::Option<&str>
pub fn hunch::HunchResult::frame_rate(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::is_episode(&self) -> bool
pub fn hunch::HunchResult::is_extra(&self) -> bool
pub fn hunch::HunchResult::is_movie(&self) -> bool
pub fn hunch::HunchResult::language(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::languages(&self) -> alloc::vec::Vec<&str>
pub fn hunch::HunchResult::media_type(&self) -> core::option::Option<hunch::MediaType>
pub fn hunch::HunchResult::mimetype(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::other(&self) -> alloc::vec::Vec<&str>
pub fn hunch::HunchResult::part(&self) -> core::option::Option<i32>
pub fn hunch::HunchResult::proper_count(&self) -> core::option::Option<u32>
pub fn hunch::HunchResult::properties(&self) -> &alloc::collections::btree::map::BTreeMap<hunch::Property, alloc::vec::Vec<alloc::string::String>>
pub fn hunch::HunchResult::release_group(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::screen_size(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::season(&self) -> core::option::Option<i32>
pub fn hunch::HunchResult::source(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::streaming_service(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::subtitle_language(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::subtitle_languages(&self) -> alloc::vec::Vec<&str>
pub fn hunch::HunchResult::title(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::to_flat_map(&self) -> alloc::collections::btree::map::BTreeMap<alloc::string::String, serde_json::value::Value>
pub fn hunch::HunchResult::video_bit_rate(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::video_codec(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::video_profile(&self) -> core::option::Option<&str>
pub fn hunch::HunchResult::year(&self) -> core::option::Option<i32>
impl core::clone::Clone for hunch::HunchResult
pub fn hunch::HunchResult::clone(&self) -> hunch::HunchResult
impl core::fmt::Debug for hunch::HunchResult
pub fn hunch::HunchResult::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for hunch::HunchResult
pub fn hunch::HunchResult::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for hunch::HunchResult
impl core::marker::Send for hunch::HunchResult
impl core::marker::Sync for hunch::HunchResult
impl core::marker::Unpin for hunch::HunchResult
impl core::marker::UnsafeUnpin for hunch::HunchResult
impl core::panic::unwind_safe::RefUnwindSafe for hunch::HunchResult
impl core::panic::unwind_safe::UnwindSafe for hunch::HunchResult
pub struct hunch::Pipeline
impl hunch::Pipeline
pub fn hunch::Pipeline::new() -> Self
pub fn hunch::Pipeline::run(&self, input: &str) -> hunch::HunchResult
pub fn hunch::Pipeline::run_with_context<S: core::convert::AsRef<str>>(&self, input: &str, siblings: &[S]) -> hunch::HunchResult
pub fn hunch::Pipeline::run_with_context_and_fallback<S: core::convert::AsRef<str>>(&self, input: &str, siblings: &[S], fallback_title: core::option::Option<&str>) -> hunch::HunchResult
impl core::default::Default for hunch::Pipeline
pub fn hunch::Pipeline::default() -> Self
impl core::marker::Freeze for hunch::Pipeline
impl core::marker::Send for hunch::Pipeline
impl core::marker::Sync for hunch::Pipeline
impl core::marker::Unpin for hunch::Pipeline
impl core::marker::UnsafeUnpin for hunch::Pipeline
impl core::panic::unwind_safe::RefUnwindSafe for hunch::Pipeline
impl core::panic::unwind_safe::UnwindSafe for hunch::Pipeline
pub fn hunch::hunch(input: &str) -> hunch::HunchResult
pub fn hunch::hunch_with_context<S: core::convert::AsRef<str>>(input: &str, siblings: &[S]) -> hunch::HunchResult