repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-dds/src/ember/bye.rs | yazi-dds/src/ember/bye.rs | use mlua::{ExternalResult, IntoLua, Lua, Value};
use serde::{Deserialize, Serialize};
use super::Ember;
#[derive(Debug, Deserialize, Serialize)]
pub struct EmberBye;
impl EmberBye {
pub fn owned() -> Ember<'static> { Self.into() }
}
impl From<EmberBye> for Ember<'_> {
fn from(value: EmberBye) -> Self { Self::Bye(... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-dds/src/ember/mount.rs | yazi-dds/src/ember/mount.rs | use mlua::{IntoLua, Lua, Value};
use serde::{Deserialize, Serialize};
use super::Ember;
#[derive(Debug, Deserialize, Serialize)]
pub struct EmberMount;
impl EmberMount {
pub fn owned() -> Ember<'static> { Self.into() }
pub fn borrowed() -> Ember<'static> { Self::owned() }
}
impl From<EmberMount> for Ember<'_> {
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-dds/src/ember/duplicate.rs | yazi-dds/src/ember/duplicate.rs | use std::borrow::Cow;
use mlua::{IntoLua, Lua, Value};
use serde::{Deserialize, Serialize};
use yazi_shared::url::UrlBuf;
use super::Ember;
#[derive(Debug, Deserialize, Serialize)]
pub struct EmberDuplicate<'a> {
pub items: Cow<'a, Vec<BodyDuplicateItem>>,
}
impl<'a> EmberDuplicate<'a> {
pub fn borrowed(items: &'... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-dds/src/ember/delete.rs | yazi-dds/src/ember/delete.rs | use std::borrow::Cow;
use mlua::{IntoLua, Lua, Value};
use serde::{Deserialize, Serialize};
use yazi_shared::url::UrlBuf;
use super::Ember;
#[derive(Debug, Deserialize, Serialize)]
pub struct EmberDelete<'a> {
pub urls: Cow<'a, Vec<UrlBuf>>,
}
impl<'a> EmberDelete<'a> {
pub fn borrowed(urls: &'a Vec<UrlBuf>) -> E... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-dds/src/ember/custom.rs | yazi-dds/src/ember/custom.rs | use mlua::{IntoLua, Lua, Value};
use serde::Serialize;
use yazi_shared::data::Data;
use super::Ember;
use crate::Sendable;
#[derive(Debug)]
pub struct EmberCustom {
pub kind: String,
pub data: Data,
}
impl EmberCustom {
pub fn from_str(kind: &str, data: &str) -> anyhow::Result<Ember<'static>> {
Ok(Self { kind: ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-dds/src/ember/tab.rs | yazi-dds/src/ember/tab.rs | use mlua::{IntoLua, Lua, Value};
use serde::{Deserialize, Serialize};
use yazi_shared::Id;
use super::Ember;
#[derive(Debug, Deserialize, Serialize)]
pub struct EmberTab {
pub id: Id,
}
impl EmberTab {
pub fn owned(id: Id) -> Ember<'static> { Self { id }.into() }
pub fn borrowed(id: Id) -> Ember<'static> { Self:... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/rust-on-exercism/health-statistics.rs | third_party/rust-on-exercism/health-statistics.rs | // ANCHOR: solution
// ANCHOR: setup
#![allow(dead_code)]
pub struct User {
name: String,
age: u32,
height: f32,
visit_count: u32,
last_blood_pressure: Option<(u32, u32)>,
}
pub struct Measurements {
height: f32,
blood_pressure: (u32, u32),
}
pub struct HealthReport<'a> {
patient_name... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/cxx/book/snippets.rs | third_party/cxx/book/snippets.rs | //! This file contains various code snippets taken from the CXX book and
//! tutorial. Some have been modified to fit the course better.
// ANCHOR: rust_bridge
#[cxx::bridge]
mod ffi {
extern "Rust" {
type MyType; // Opaque type
fn foo(&self); // Method on `MyType`
fn bar() -> Box<MyType>; ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/cxx/blobstore/build.rs | third_party/cxx/blobstore/build.rs | fn main() {
// Find target directory, either from CARGO_TARGET_DIR or in-tree if unset.
let mut src_dir =
std::env::var_os("CARGO_TARGET_DIR").unwrap_or("../../../target".into());
src_dir.push("/cxxbridge/demo/src");
cxx_build::bridge("src/main.rs")
.file("src/blobstore.cc")
.fl... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/cxx/blobstore/src/main.rs | third_party/cxx/blobstore/src/main.rs | //! Example project demonstrating usage of CXX.
// ANCHOR: bridge
#[allow(unsafe_op_in_unsafe_fn)]
#[cxx::bridge(namespace = "org::blobstore")]
mod ffi {
// Shared structs with fields visible to both languages.
struct BlobMetadata {
size: usize,
tags: Vec<String>,
}
// ANCHOR: rust_brid... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/rust-by-example/destructuring-arrays.rs | third_party/rust-by-example/destructuring-arrays.rs | #[rustfmt::skip]
fn main() {
let triple = [0, -2, 3];
println!("Tell me about {triple:?}");
match triple {
[0, y, z] => println!("First is 0, y = {y}, and z = {z}"),
[1, ..] => println!("First is 1 and the rest were ignored"),
_ => println!("All elements were ignored"),
... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/rust-by-example/destructuring-structs.rs | third_party/rust-by-example/destructuring-structs.rs | struct Foo {
x: (u32, u32),
y: u32,
}
#[rustfmt::skip]
fn main() {
let foo = Foo { x: (1, 2), y: 3 };
match foo {
Foo { y: 2, x: i } => println!("y = 2, x = {i:?}"),
Foo { x: (1, b), y } => println!("x.0 = 1, b = {b}, y = {y}"),
Foo { y, .. } => println!("y = {y}, other... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/rust-by-example/webevent.rs | third_party/rust-by-example/webevent.rs | enum WebEvent {
PageLoad, // Variant without payload
KeyPress(char), // Tuple struct variant
Click { x: i64, y: i64 }, // Full struct variant
}
#[rustfmt::skip]
fn inspect(event: WebEvent) {
match event {
WebEvent::PageLoad => println!("page loaded"),
Web... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/third_party/rust-by-example/match-guards.rs | third_party/rust-by-example/match-guards.rs | #[rustfmt::skip]
fn main() {
let pair = (2, -2);
println!("Tell me about {pair:?}");
match pair {
(x, y) if x == y => println!("These are twins"),
(x, y) if x + y == 0 => println!("Antimatter, kaboom!"),
(x, _) if x % 2 == 1 => println!("The first one is odd"),
_ ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-exerciser/src/lib.rs | mdbook-exerciser/src/lib.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-exerciser/src/main.rs | mdbook-exerciser/src/main.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/generics/exercise.rs | src/generics/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/lifetimes/exercise.rs | src/lifetimes/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/unsafe-rust/exercise.rs | src/unsafe-rust/exercise.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/idiomatic/leveraging-the-type-system/typestate-pattern/typestate-generics.rs | src/idiomatic/leveraging-the-type-system/typestate-pattern/typestate-generics.rs | // ANCHOR: Complete
use std::fmt::Write as _;
// ANCHOR: Serializer-def
struct Serializer<S> {
// [...]
indent: usize,
buffer: String,
state: S,
}
// ANCHOR_END: Serializer-def
// ANCHOR: Root-def
struct Root;
// ANCHOR_END: Root-def
// ANCHOR: Struct-def
struct Struct<S>(S);
// ANCHOR_END: Struct-de... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/closures/exercise.rs | src/closures/exercise.rs | // Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/exercises/bare-metal/rtc/build.rs | src/exercises/bare-metal/rtc/build.rs | // Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/exercises/bare-metal/rtc/src/logger.rs | src/exercises/bare-metal/rtc/src/logger.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/exercises/bare-metal/rtc/src/main.rs | src/exercises/bare-metal/rtc/src/main.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/exercises/bare-metal/rtc/src/exceptions.rs | src/exercises/bare-metal/rtc/src/exceptions.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/exercises/bare-metal/rtc/src/pl031.rs | src/exercises/bare-metal/rtc/src/pl031.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/exercises/bare-metal/compass/src/main.rs | src/exercises/bare-metal/compass/src/main.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/concurrency/async-exercises/dining-philosophers.rs | src/concurrency/async-exercises/dining-philosophers.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/concurrency/async-exercises/chat-async/src/bin/client.rs | src/concurrency/async-exercises/chat-async/src/bin/client.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/concurrency/async-exercises/chat-async/src/bin/server.rs | src/concurrency/async-exercises/chat-async/src/bin/server.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/concurrency/sync-exercises/dining-philosophers.rs | src/concurrency/sync-exercises/dining-philosophers.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/concurrency/sync-exercises/link-checker.rs | src/concurrency/sync-exercises/link-checker.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/references/exercise.rs | src/references/exercise.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/memory-management/exercise.rs | src/memory-management/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/tuples-and-arrays/exercise.rs | src/tuples-and-arrays/exercise.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/control-flow-basics/exercise.rs | src/control-flow-basics/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/modules/exercise.rs | src/modules/exercise.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/smart-pointers/exercise.rs | src/smart-pointers/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/testing/exercise.rs | src/testing/exercise.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/user-defined-types/exercise.rs | src/user-defined-types/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/std-traits/exercise.rs | src/std-traits/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/std-types/exercise.rs | src/std-types/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/iterators/exercise.rs | src/iterators/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/logging/src/main.rs | src/android/logging/src/main.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/aidl/birthday_service/src/lib.rs | src/android/aidl/birthday_service/src/lib.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/aidl/birthday_service/src/client.rs | src/android/aidl/birthday_service/src/client.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/aidl/birthday_service/src/server.rs | src/android/aidl/birthday_service/src/server.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/testing/googletest.rs | src/android/testing/googletest.rs | // ANCHOR: test_elements_are
use googletest::prelude::*;
#[googletest::test]
fn test_elements_are() {
let value = vec!["foo", "bar", "baz"];
expect_that!(value, elements_are!(eq(&"foo"), lt(&"xyz"), starts_with("b")));
}
// ANCHOR_END: test_elements_are
#[should_panic]
// ANCHOR: test_multiline_string_diff
#[... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/testing/mockall.rs | src/android/testing/mockall.rs | // ANCHOR: simple_example
use std::time::Duration;
#[mockall::automock]
pub trait Pet {
fn is_hungry(&self, since_last_meal: Duration) -> bool;
}
#[test]
fn test_robot_dog() {
let mut mock_dog = MockPet::new();
mock_dog.expect_is_hungry().return_const(true);
assert!(mock_dog.is_hungry(Duration::from_s... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/testing/src/lib.rs | src/android/testing/src/lib.rs | // Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/interoperability/with-c/bindgen/main.rs | src/android/interoperability/with-c/bindgen/main.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/interoperability/with-c/rust/libanalyze/analyze.rs | src/android/interoperability/with-c/rust/libanalyze/analyze.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/interoperability/java/src/lib.rs | src/android/interoperability/java/src/lib.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/build-rules/library/src/lib.rs | src/android/build-rules/library/src/lib.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/build-rules/library/src/main.rs | src/android/build-rules/library/src/main.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/android/build-rules/binary/src/main.rs | src/android/build-rules/binary/src/main.rs | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/methods-and-traits/exercise.rs | src/methods-and-traits/exercise.rs | // Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/pattern-matching/exercise.rs | src/pattern-matching/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/types-and-values/exercise.rs | src/types-and-values/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/microcontrollers/examples/src/bin/board_support.rs | src/bare-metal/microcontrollers/examples/src/bin/board_support.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/microcontrollers/examples/src/bin/pac.rs | src/bare-metal/microcontrollers/examples/src/bin/pac.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/microcontrollers/examples/src/bin/typestate.rs | src/bare-metal/microcontrollers/examples/src/bin/typestate.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/microcontrollers/examples/src/bin/hal.rs | src/bare-metal/microcontrollers/examples/src/bin/hal.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/microcontrollers/examples/src/bin/minimal.rs | src/bare-metal/microcontrollers/examples/src/bin/minimal.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/microcontrollers/examples/src/bin/mmio.rs | src/bare-metal/microcontrollers/examples/src/bin/mmio.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/microcontrollers/examples/src/bin/interrupts/mod.rs | src/bare-metal/microcontrollers/examples/src/bin/interrupts/mod.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/useful-crates/allocator-example/src/main.rs | src/bare-metal/useful-crates/allocator-example/src/main.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/useful-crates/zerocopy-example/src/main.rs | src/bare-metal/useful-crates/zerocopy-example/src/main.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/alloc-example/src/main.rs | src/bare-metal/alloc-example/src/main.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/main_psci.rs | src/bare-metal/aps/examples/src/main_psci.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/main_minimal.rs | src/bare-metal/aps/examples/src/main_minimal.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/asm.rs | src/bare-metal/aps/examples/src/asm.rs | // Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/logger.rs | src/bare-metal/aps/examples/src/logger.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/pl011.rs | src/bare-metal/aps/examples/src/pl011.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/main_safemmio.rs | src/bare-metal/aps/examples/src/main_safemmio.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/main_improved.rs | src/bare-metal/aps/examples/src/main_improved.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/pl011_minimal.rs | src/bare-metal/aps/examples/src/pl011_minimal.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/main_rt.rs | src/bare-metal/aps/examples/src/main_rt.rs | // Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/main_logger.rs | src/bare-metal/aps/examples/src/main_logger.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/pl011_struct.rs | src/bare-metal/aps/examples/src/pl011_struct.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/exceptions_rt.rs | src/bare-metal/aps/examples/src/exceptions_rt.rs | // Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/bare-metal/aps/examples/src/exceptions.rs | src/bare-metal/aps/examples/src/exceptions.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/src/error-handling/exercise.rs | src/error-handling/exercise.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/course.rs | mdbook-course/src/course.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/lib.rs | mdbook-course/src/lib.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/replacements.rs | mdbook-course/src/replacements.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/timing_info.rs | mdbook-course/src/timing_info.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/markdown.rs | mdbook-course/src/markdown.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/frontmatter.rs | mdbook-course/src/frontmatter.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/bin/mdbook-course.rs | mdbook-course/src/bin/mdbook-course.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/bin/course-content.rs | mdbook-course/src/bin/course-content.rs | // Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/mdbook-course/src/bin/course-schedule.rs | mdbook-course/src/bin/course-schedule.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
google/comprehensive-rust | https://github.com/google/comprehensive-rust/blob/da6f4f6e13474fcf59ce927b406a300c402a8ca3/xtask/src/main.rs | xtask/src/main.rs | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | rust | Apache-2.0 | da6f4f6e13474fcf59ce927b406a300c402a8ca3 | 2026-01-04T15:32:35.184838Z | false |
firecracker-microvm/firecracker | https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/acpi-tables/src/lib.rs | src/acpi-tables/src/lib.rs | // Copyright © 2019 Intel Corporation
// Copyright 2023 Rivos, Inc.
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
use vm_memory::{GuestAddress, GuestMemory, GuestMemoryError};
pub mod aml;
pub mod dsdt;
pub mod fadt;
pub mod madt;
pub mod mcfg;
pu... | rust | Apache-2.0 | f0691f8253d4bde225b9f70ecabf39b7ad796935 | 2026-01-04T15:33:15.697747Z | false |
firecracker-microvm/firecracker | https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/acpi-tables/src/xsdt.rs | src/acpi-tables/src/xsdt.rs | // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2023 Rivos, Inc.
//
// SPDX-License-Identifier: Apache-2.0
use std::mem::size_of;
use vm_memory::{Address, Bytes, GuestAddress, GuestMemory};
use zerocopy::IntoBytes;
use crate::{AcpiError, Result, Sdt, SdtHeader, checksum};
///... | rust | Apache-2.0 | f0691f8253d4bde225b9f70ecabf39b7ad796935 | 2026-01-04T15:33:15.697747Z | false |
firecracker-microvm/firecracker | https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/acpi-tables/src/aml.rs | src/acpi-tables/src/aml.rs | // Copyright © 2019 Intel Corporation
// Copyright © 2023 Rivos, Inc.
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
#![allow(missing_debug_implementations)]
use std::marker::PhantomData;
#[derive(Debug, Clone, thiserror::Error, displaydoc::Displa... | rust | Apache-2.0 | f0691f8253d4bde225b9f70ecabf39b7ad796935 | 2026-01-04T15:33:15.697747Z | true |
firecracker-microvm/firecracker | https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/acpi-tables/src/mcfg.rs | src/acpi-tables/src/mcfg.rs | // Copyright © 2019 Intel Corporation
// Copyright © 2023 Rivos, Inc.
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
use std::mem::size_of;
use vm_memory::{Bytes, GuestAddress, GuestMemory};
use zerocopy::{Immutable, IntoBytes};
use crate::{Result... | rust | Apache-2.0 | f0691f8253d4bde225b9f70ecabf39b7ad796935 | 2026-01-04T15:33:15.697747Z | false |
firecracker-microvm/firecracker | https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/acpi-tables/src/madt.rs | src/acpi-tables/src/madt.rs | // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2023 Rivos, Inc.
//
// SPDX-License-Identifier: Apache-2.0
use std::mem::size_of;
use vm_memory::{Address, Bytes, GuestAddress, GuestMemory};
use zerocopy::little_endian::U32;
use zerocopy::{Immutable, IntoBytes};
use crate::{Acp... | rust | Apache-2.0 | f0691f8253d4bde225b9f70ecabf39b7ad796935 | 2026-01-04T15:33:15.697747Z | false |
firecracker-microvm/firecracker | https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/acpi-tables/src/fadt.rs | src/acpi-tables/src/fadt.rs | // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2023 Rivos, Inc.
//
// SPDX-License-Identifier: Apache-2.0
use vm_memory::{Bytes, GuestAddress, GuestMemory};
use zerocopy::little_endian::{U16, U32, U64};
use zerocopy::{Immutable, IntoBytes};
use crate::{GenericAddressStructure,... | rust | Apache-2.0 | f0691f8253d4bde225b9f70ecabf39b7ad796935 | 2026-01-04T15:33:15.697747Z | false |
firecracker-microvm/firecracker | https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/acpi-tables/src/rsdp.rs | src/acpi-tables/src/rsdp.rs | // Copyright © 2019 Intel Corporation
// Copyright © 2023 Rivos, Inc.
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
use vm_memory::{Bytes, GuestAddress, GuestMemory};
use zerocopy::little_endian::{U32, U64};
use zerocopy::{Immutable, IntoBytes};
u... | rust | Apache-2.0 | f0691f8253d4bde225b9f70ecabf39b7ad796935 | 2026-01-04T15:33:15.697747Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.