File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ If function name starts with `get_` or `set_` for getter or setter respectively.
230230Descriptor name becomes function name with prefix removed. This is useful in case of
231231rust's special keywords like ` type ` .
232232
233- ``` rust
233+ ``` rust,ignore
234234# extern crate pyo3;
235235# use pyo3::prelude::*;
236236# #[pyclass]
@@ -259,7 +259,7 @@ In this case property `num` is defined. And it is available from python code as
259259Also both ` #[getter] ` and ` #[setter] ` attributes accepts one parameter.
260260If this parameter is specified, it is used as a property name. i.e.
261261
262- ``` rust
262+ ``` rust,ignore
263263# extern crate pyo3;
264264# use pyo3::prelude::*;
265265# #[pyclass]
@@ -287,7 +287,7 @@ In this case the property `number` is defined and is available from python code
287287
288288For simple cases you can also define getters and setters in your Rust struct field definition, for example:
289289
290- ``` rust
290+ ``` rust,ignore
291291# extern crate pyo3;
292292# use pyo3::prelude::*;
293293#[pyclass]
You can’t perform that action at this time.
0 commit comments