Struct aquascope::analysis::permissions::Permissions
source · pub struct Permissions {
pub read: bool,
pub write: bool,
pub drop: bool,
}
Expand description
Read, Write, and Own permissions for a single Place
.
NOTE: previously, the term drop was used instead of own and this terminology remains within the source and internal documentation.
Fields§
§read: bool
§write: bool
§drop: bool
Implementations§
source§impl Permissions
impl Permissions
Trait Implementations§
source§impl Clone for Permissions
impl Clone for Permissions
source§fn clone(&self) -> Permissions
fn clone(&self) -> Permissions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Permissions
impl Debug for Permissions
source§impl<C> DebugWithContext<C> for Permissions
impl<C> DebugWithContext<C> for Permissions
source§impl Difference for Permissions
impl Difference for Permissions
type Diff = PermissionsDiff
fn diff(&self, rhs: Permissions) -> Self::Diff
source§impl Hash for Permissions
impl Hash for Permissions
source§impl JoinSemiLattice for Permissions
impl JoinSemiLattice for Permissions
source§impl PartialEq<Permissions> for Permissions
impl PartialEq<Permissions> for Permissions
source§fn eq(&self, other: &Permissions) -> bool
fn eq(&self, other: &Permissions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Permissions
impl Serialize for Permissions
source§impl TS for Permissions
impl TS for Permissions
const EXPORT_TO: Option<&'static str> = _
source§fn decl() -> String
fn decl() -> String
Declaration of this type, e.g.
interface User { user_id: number, ... }
.
This function will panic if the type has no declaration.source§fn inline() -> String
fn inline() -> String
Formats this types definition in TypeScript, e.g
{ user_id: number }
.
This function will panic if the type cannot be inlined.source§fn inline_flattened() -> String
fn inline_flattened() -> String
Flatten an type declaration.
This function will panic if the type cannot be flattened.
This function will panic if the type cannot be flattened.
source§fn dependencies() -> Vec<Dependency>
fn dependencies() -> Vec<Dependency>
Information about types this type depends on.
This is used for resolving imports when exporting to a file.
source§fn transparent() -> bool
fn transparent() -> bool
true
if this is a transparent type, e.g tuples or a list.This is used for resolving imports when using the
export!
macro.source§fn name_with_type_args(args: Vec<String, Global>) -> String
fn name_with_type_args(args: Vec<String, Global>) -> String
Name of this type in TypeScript, with type arguments.
source§fn export() -> Result<(), ExportError>
fn export() -> Result<(), ExportError>
Manually export this type to a file.
The output file can be specified by annotating the type with
#[ts(export_to = ".."]
.
By default, the filename will be derived from the types name. Read moresource§fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>
fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>
Manually export this type to a file with a file with the specified path. This
function will ignore the
#[ts(export_to = "..)]
attribute.source§fn export_to_string() -> Result<String, ExportError>
fn export_to_string() -> Result<String, ExportError>
Manually generate bindings for this type, returning a
This function does not format the output, even if the
String
.This function does not format the output, even if the
format
feature is enabled.impl Copy for Permissions
impl Eq for Permissions
impl StructuralEq for Permissions
impl StructuralPartialEq for Permissions
Auto Trait Implementations§
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnwindSafe for Permissions
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