[−][src]Enum py_marshal::Obj
Variants
Bool(bool)
Float(f64)
Dict(ArcRwLock<HashMap<ObjHashable, Obj>>)
Set(ArcRwLock<HashSet<ObjHashable>>)
FrozenSet(Arc<HashSet<ObjHashable>>)
Methods
impl Obj
[src]
pub fn extract_none(self) -> Result<(), Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_stop_iteration(self) -> Result<(), Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_bool(self) -> Result<bool, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_long(self) -> Result<Arc<BigInt>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_float(self) -> Result<f64, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_bytes(self) -> Result<Arc<Vec<u8>>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_string(self) -> Result<Arc<String>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_tuple(self) -> Result<Arc<Vec<Self>>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_list(self) -> Result<ArcRwLock<Vec<Self>>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_dict(self) -> Result<ArcRwLock<HashMap<ObjHashable, Self>>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_set(self) -> Result<ArcRwLock<HashSet<ObjHashable>>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_frozenset(self) -> Result<Arc<HashSet<ObjHashable>>, Self>
[src]
Errors
Returns a reference to self if extraction fails
pub fn extract_code(self) -> Result<Arc<Code>, Self>
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_none(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_stop_iteration(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_bool(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_long(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_float(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_bytes(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_string(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_tuple(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_list(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_dict(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_set(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_frozenset(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
#[must_use]pub fn is_code(&self) -> bool
[src]
Errors
Returns a reference to self if extraction fails
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Obj
impl Send for Obj
impl Sync for Obj
impl Unpin for Obj
impl UnwindSafe for Obj
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[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>,