[−][src]Struct adblock::UrlSpecificResources
Contains cosmetic filter information intended to be injected into a particular hostname.
Fields
hide_selectors: HashSet<String>
A set of any CSS selector on the page that should be hidden, i.e.
styled as { display: none !important; }
.
style_selectors: HashMap<String, Vec<String>>
A map of CSS selectors on the page to respective non-hide style rules,
i.e. any required styles other than display: none
.
exceptions: HashSet<String>
A set of any class or id CSS selectors that should not have generic rules applied.
injected_script: String
Javascript code for any scriptlets that should be injected into the page.
Trait Implementations
impl<'a> ExtractExt<'a> for &'a UrlSpecificResources
[src]
type Target = PyRef<'a, UrlSpecificResources>
impl<'a> ExtractExt<'a> for &'a mut UrlSpecificResources
[src]
type Target = PyRefMut<'a, UrlSpecificResources>
impl HasMethodsInventory for UrlSpecificResources
[src]
type Methods = Pyo3MethodsInventoryForUrlSpecificResources
impl HasProtoRegistry for UrlSpecificResources
[src]
impl Into<UrlSpecificResources> for RustUrlSpecificResources
[src]
fn into(self) -> UrlSpecificResources
[src]
impl IntoPy<PyObject> for UrlSpecificResources
[src]
impl PyClass for UrlSpecificResources
[src]
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
type BaseNativeType = PyAny
The closest native ancestor. This is PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it's PyDict
. Read more
impl PyClassAlloc for UrlSpecificResources
[src]
unsafe fn new(py: Python<'_>, subtype: *mut PyTypeObject) -> *mut Self::Layout
[src]
unsafe fn dealloc(py: Python<'_>, self_: *mut Self::Layout)
[src]
impl PyClassSend for UrlSpecificResources
[src]
type ThreadChecker = ThreadCheckerStub<UrlSpecificResources>
impl<'p> PyObjectProtocol<'p> for UrlSpecificResources
[src]
fn __repr__(
&'p self
) -> <UrlSpecificResources as PyObjectReprProtocol<'p>>::Result
[src]
&'p self
) -> <UrlSpecificResources as PyObjectReprProtocol<'p>>::Result
fn __getattr__(&'p self, name: Self::Name) -> Self::Result where
Self: PyObjectGetAttrProtocol<'p>,
[src]
Self: PyObjectGetAttrProtocol<'p>,
fn __setattr__(
&'p mut self,
name: Self::Name,
value: Self::Value
) -> Self::Result where
Self: PyObjectSetAttrProtocol<'p>,
[src]
&'p mut self,
name: Self::Name,
value: Self::Value
) -> Self::Result where
Self: PyObjectSetAttrProtocol<'p>,
fn __delattr__(&'p mut self, name: Self::Name) -> Self::Result where
Self: PyObjectDelAttrProtocol<'p>,
[src]
Self: PyObjectDelAttrProtocol<'p>,
fn __str__(&'p self) -> Self::Result where
Self: PyObjectStrProtocol<'p>,
[src]
Self: PyObjectStrProtocol<'p>,
fn __format__(&'p self, format_spec: Self::Format) -> Self::Result where
Self: PyObjectFormatProtocol<'p>,
[src]
Self: PyObjectFormatProtocol<'p>,
fn __hash__(&'p self) -> Self::Result where
Self: PyObjectHashProtocol<'p>,
[src]
Self: PyObjectHashProtocol<'p>,
fn __bytes__(&'p self) -> Self::Result where
Self: PyObjectBytesProtocol<'p>,
[src]
Self: PyObjectBytesProtocol<'p>,
fn __richcmp__(&'p self, other: Self::Other, op: CompareOp) -> Self::Result where
Self: PyObjectRichcmpProtocol<'p>,
[src]
Self: PyObjectRichcmpProtocol<'p>,
fn __bool__(&'p self) -> Self::Result where
Self: PyObjectBoolProtocol<'p>,
[src]
Self: PyObjectBoolProtocol<'p>,
impl<'p> PyObjectReprProtocol<'p> for UrlSpecificResources
[src]
impl PyTypeInfo for UrlSpecificResources
[src]
type Type = UrlSpecificResources
Type of objects to store in PyObject struct
type BaseType = PyAny
Base class
type Layout = PyCell<Self>
Layout
type BaseLayout = PyCellBase<PyAny>
Layout of Basetype.
type Initializer = PyClassInitializer<Self>
Initializer for layout
type AsRefTarget = PyCell<Self>
Utility type to make AsPyRef work
const NAME: &'static str
[src]
const MODULE: Option<&'static str>
[src]
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
[src]
fn is_instance(object: &PyAny) -> bool
[src]
fn is_exact_instance(object: &PyAny) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for UrlSpecificResources
impl Send for UrlSpecificResources
impl Sync for UrlSpecificResources
impl Unpin for UrlSpecificResources
impl UnwindSafe for UrlSpecificResources
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
[src]
U: FromPy<T>,
impl<T> PyClassAlloc for T where
T: PyTypeInfo + PyClassWithFreeList,
[src]
T: PyTypeInfo + PyClassWithFreeList,
unsafe fn new(
py: Python<'_>,
subtype: *mut PyTypeObject
) -> *mut <T as PyTypeInfo>::Layout
[src]
py: Python<'_>,
subtype: *mut PyTypeObject
) -> *mut <T as PyTypeInfo>::Layout
unsafe fn dealloc(py: Python<'_>, self_: *mut <T as PyTypeInfo>::Layout)
[src]
impl<T> PyMethods for T where
T: HasMethodsInventory,
[src]
T: HasMethodsInventory,
fn py_methods() -> Vec<&'static PyMethodDefType>
[src]
impl<T> PyProtoMethods for T where
T: HasProtoRegistry,
[src]
T: HasProtoRegistry,
fn async_methods() -> Option<NonNull<PyAsyncMethods>>
[src]
fn basic_methods() -> Option<NonNull<PyObjectMethods>>
[src]
fn buffer_methods() -> Option<NonNull<PyBufferProcs>>
[src]
fn descr_methods() -> Option<NonNull<PyDescrMethods>>
[src]
fn gc_methods() -> Option<NonNull<PyGCMethods>>
[src]
fn mapping_methods() -> Option<NonNull<PyMappingMethods>>
[src]
fn number_methods() -> Option<NonNull<PyNumberMethods>>
[src]
fn iter_methods() -> Option<NonNull<PyIterMethods>>
[src]
fn sequence_methods() -> Option<NonNull<PySequenceMethods>>
[src]
impl<T> PyTypeObject for T where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
fn type_object(py: Python<'_>) -> &PyType
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,