use super::{ByColumnName, ByCondition, ByContent};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default, Hash)]
pub struct Locator;
impl Locator {
pub fn content<S>(text: S) -> ByContent<S>
where
S: AsRef<str>,
{
ByContent::new(text)
}
pub fn column<S>(text: S) -> ByColumnName<S>
where
S: AsRef<str>,
{
ByColumnName::new(text)
}
pub fn by<F>(condition: F) -> ByCondition<F>
where
F: Fn(&str) -> bool,
{
ByCondition::new(condition)
}
}