pub enum UnsafePolicy {
AllFunctionsSafe,
AllFunctionsUnsafe,
ReferencesWrappedAllFunctionsSafe,
}
Variants§
Implementations§
Source§impl UnsafePolicy
impl UnsafePolicy
Sourcepub fn requires_cpprefs(&self) -> bool
pub fn requires_cpprefs(&self) -> bool
Whether we are treating C++ references as a different thing from Rust references and therefore have to generate lots of code for a CppRef type
Trait Implementations§
Source§impl Clone for UnsafePolicy
impl Clone for UnsafePolicy
Source§fn clone(&self) -> UnsafePolicy
fn clone(&self) -> UnsafePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnsafePolicy
impl Debug for UnsafePolicy
Source§impl Default for UnsafePolicy
impl Default for UnsafePolicy
Source§impl Hash for UnsafePolicy
impl Hash for UnsafePolicy
Source§impl Parse for UnsafePolicy
impl Parse for UnsafePolicy
fn parse(input: ParseStream<'_>) -> ParseResult<Self>
Source§impl PartialEq for UnsafePolicy
impl PartialEq for UnsafePolicy
Source§impl ToTokens for UnsafePolicy
impl ToTokens for UnsafePolicy
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for UnsafePolicy
impl StructuralPartialEq for UnsafePolicy
Auto Trait Implementations§
impl Freeze for UnsafePolicy
impl RefUnwindSafe for UnsafePolicy
impl Send for UnsafePolicy
impl Sync for UnsafePolicy
impl Unpin for UnsafePolicy
impl UnwindSafe for UnsafePolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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 moreSource§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.