pub enum PubUnderscoreFieldsBehaviour {
PubliclyExported,
AllPubFields,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PubUnderscoreFieldsBehaviour
impl Clone for PubUnderscoreFieldsBehaviour
Source§fn clone(&self) -> PubUnderscoreFieldsBehaviour
fn clone(&self) -> PubUnderscoreFieldsBehaviour
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PubUnderscoreFieldsBehaviour
Source§impl Deserialize for PubUnderscoreFieldsBehaviour
impl Deserialize for PubUnderscoreFieldsBehaviour
Source§fn deserialize(dcx: &DiagCtxt<'_>, value: &Spanned<DeValue<'_>>) -> Option<Self>
fn deserialize(dcx: &DiagCtxt<'_>, value: &Spanned<DeValue<'_>>) -> Option<Self>
Attempt to deserialize the value. Returns
None and raises an error on failure.Source§impl FromDefault<PubUnderscoreFieldsBehaviour> for PubUnderscoreFieldsBehaviour
impl FromDefault<PubUnderscoreFieldsBehaviour> for PubUnderscoreFieldsBehaviour
Source§fn from_default(default: PubUnderscoreFieldsBehaviour) -> Self
fn from_default(default: PubUnderscoreFieldsBehaviour) -> Self
Creates this value from a default value.
Source§fn display_default(default: PubUnderscoreFieldsBehaviour) -> impl Display
fn display_default(default: PubUnderscoreFieldsBehaviour) -> impl Display
Writes the default value to a string.
Auto Trait Implementations§
impl DynSend for PubUnderscoreFieldsBehaviour
impl DynSync for PubUnderscoreFieldsBehaviour
impl Freeze for PubUnderscoreFieldsBehaviour
impl RefUnwindSafe for PubUnderscoreFieldsBehaviour
impl Send for PubUnderscoreFieldsBehaviour
impl Sync for PubUnderscoreFieldsBehaviour
impl Unpin for PubUnderscoreFieldsBehaviour
impl UnsafeUnpin for PubUnderscoreFieldsBehaviour
impl UnwindSafe for PubUnderscoreFieldsBehaviour
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
PubliclyExported: 0 bytesAllPubFields: 0 bytes