lewp_css/parse_css_selector.rs
1// This file is part of css. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/css/master/COPYRIGHT. No part of predicator, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
2// Copyright © 2017 The developers of css. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/css/master/COPYRIGHT.
3
4use {
5 crate::{
6 domain::selectors::{OurSelector, OurSelectorImpl},
7 CustomParseError,
8 },
9 cssparser::ParseError,
10};
11
12/// Parses a CSS selector
13#[inline(always)]
14pub fn parse_css_selector(
15 selector_css: &str,
16) -> Result<OurSelector, ParseError<CustomParseError>> {
17 OurSelectorImpl::parse_selector(selector_css)
18}