Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
7.05k
33.9k
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. use crate::colors; use crate::inspector::DenoInspector; use crate::inspector::InspectorServer; use crate::js; use crate::metrics::RuntimeMetrics; use crate::ops; use crate::permissions::Permissions; use crate::tokio_util::create_basic_runtime; u...
/*! # juniper_rocket_async This repository contains the [Rocket][Rocket] web server integration for [Juniper][Juniper], a [GraphQL][GraphQL] implementation for Rust. ## Documentation For documentation, including guides and examples, check out [Juniper][Juniper]. A basic usage example can also be found in the [Api ...
// This module is only intended to be used internally, hence the semver // exemption. It probably should be in a HAL or board crate. #![cfg(feature = "semver-exempt")] use rp2040::USBCTRL_REGS; use usb_device::{ endpoint::{EndpointAddress, EndpointType}, UsbDirection, }; use vcell::VolatileCell; const DPRAM_LE...
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Status And Control"] pub sc: crate::Reg<sc::SC_SPEC>, #[doc = "0x04 - Counter"] pub cnt: crate::Reg<cnt::CNT_SPEC>, #[doc = "0x08 - Modulo"] pub mod_: crate::Reg<mod_::MOD_SPEC>, #[doc = "0x0c - Channel (n) Stat...
/// Arrow schema as specified in /// https://arrow.apache.org/docs/python/api/datatypes.html /// and serialized to bytes using IPC: /// https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc /// /// See code samples on how this message can be deserialized. #[derive(Clone, Pa...
//! This module is a hack to get around the lack of the //! `__truncdfsf2` function in the `compiler_builtins` crate. //! See this: <https://github.com/rust-lang-nursery/compiler-builtins/pull/262> //! //! This code was taken from this commit from above-linked pull request to the compiler_builtins crate: //! <https://...
//! Validation implementation for BTreeMap. use super::{ ArchivedBTreeMap, ClassifiedNode, InnerNode, InnerNodeEntry, LeafNode, LeafNodeEntry, Node, NodeHeader, MIN_ENTRIES_PER_INNER_NODE, MIN_ENTRIES_PER_LEAF_NODE, }; use crate::{ rel_ptr::RelPtr, validation::{ArchiveContext, LayoutRaw}, Archived,...
//! `autopay` use anyhow::Error; use libra_types::{ account_address::AccountAddress, transaction::{Script, TransactionArgument}, }; use serde::{Deserialize, Serialize}; use serde_json::Value; use std::{fs::{self, File}, io::Write, path::PathBuf, process::exit, u64}; // These match Autpay2.move /// send percen...
use serde::{Deserialize, Serialize}; use std::fs::File; use std::io::Write; use std::path::Path; use std::path::PathBuf; use strum_macros::{Display, EnumString, EnumVariantNames}; #[derive(Debug, Serialize, Deserialize, Display, EnumString, EnumVariantNames)] #[strum(serialize_all = "kebab_case")] pub enum Template { ...
//! Colors use crate::Color; use crate::math::multiply_u8; /// Convert an f64 [0,1] component to a u8 [0,255] component fn cu8(v: f64) -> u8 { (v * 255.0).round() as u8 } /// Convert from sRGB to RGB for a single component fn srgb_to_rgb(x: f64) -> f64 { if x <= 0.04045 { x / 12.92 } else { ...
#![windows_subsystem = "windows"] use fltk::{ app::{App, AppScheme, channel}, browser::Browser, button::{Button, CheckButton}, dialog:: {FileChooser, FileChooserType, message}, enums::{Align, Color}, input::{IntInput}, prelude::*, window::DoubleWindow, }; use std::{error::Error, fmt, p...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
-