Struct roaring_landmask::shapes::Gshhg
source · pub struct Gshhg { /* private fields */ }
Implementations
sourceimpl Gshhg
impl Gshhg
sourcepub fn wkb(py: Python<'_>) -> Result<&PyBytes>
pub fn wkb(py: Python<'_>) -> Result<&PyBytes>
Get the WKB for the GSHHG shapes (full resolution).
sourcepub fn contains(&self, x: f64, y: f64) -> bool
pub fn contains(&self, x: f64, y: f64) -> bool
Check if point (x, y) is on land.
x
is longitude, [-180, 180] east
y
is latitude, [- 90, 90] north
Returns true
if the point is on land.
pub fn contains_many(
&self,
py: Python<'_>,
x: PyReadonlyArrayDyn<'_, f64>,
y: PyReadonlyArrayDyn<'_, f64>
) -> Py<PyArray<bool, Ix1>>
pub fn contains_many_par(
&self,
py: Python<'_>,
x: PyReadonlyArrayDyn<'_, f64>,
y: PyReadonlyArrayDyn<'_, f64>
) -> Py<PyArray<bool, IxDyn>>
Trait Implementations
sourceimpl PyClassImpl for Gshhg
impl PyClassImpl for Gshhg
sourceconst IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
sourceconst IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
sourceconst IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
type ThreadChecker = ThreadCheckerStub<Gshhg>
type ThreadChecker = ThreadCheckerStub<Gshhg>
This handles following two situations: Read more
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has
#[pyclass(dict)]
or not.type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has
#[pyclass(weakref)]
or not.type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
. Read morefn items_iter() -> PyClassItemsIter
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
sourceimpl PyMethods<Gshhg> for PyClassImplCollector<Gshhg>
impl PyMethods<Gshhg> for PyClassImplCollector<Gshhg>
fn py_methods(self) -> &'static PyClassItems
sourceimpl PyTypeInfo for Gshhg
impl PyTypeInfo for Gshhg
type AsRefTarget = PyCell<Gshhg>
type AsRefTarget = PyCell<Gshhg>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
sourcefn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
sourcefn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.sourcefn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.impl Send for Gshhg
impl Sync for Gshhg
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more