> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Primitive type Quoted

Module: `std`

A compile-time type which represents quoted token streams and is the result of the `quote { ... }` expression.

## Implementations

```rust
impl Quoted
```

```rust
pub comptime fn as_expr(self) -> Option<Expr>
```

```rust
pub comptime fn as_module(self) -> Option<Module>
```

```rust
pub comptime fn as_trait_constraint(self) -> TraitConstraint
```

```rust
pub comptime fn as_type(self) -> Type
```

```rust
pub comptime fn location(self) -> Option<Location>
```

```rust
pub comptime fn tokens(self) -> [Self]
```

## Trait implementations

```rust
impl Append for Quoted
```

```rust
pub comptime fn empty() -> Self
```

```rust
pub comptime fn append(self, other: Self) -> Self
```

```rust
impl Eq for Quoted
```

```rust
pub comptime fn eq(self, other: Self) -> bool
```

```rust
impl Hash for Quoted
```

```rust
pub comptime fn hash<H>(self, state: &mut H)
where
    H: Hasher
```
