Docs.rs
  • sadness-generator-0.4.2
    • sadness-generator 0.4.2
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • embark-studios
    • Dependencies
      • libc ^0.2 normal
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Crate sadness_generator

  • Version 0.4.2
  • All Items
  • Enums
  • Constants
  • Functions
logo
Change settings

Crate sadness_generator

source · [−]
Expand description

sadness-generator is a simple crate that provides multiple ways to make any program it is executed in very sad.

Enums

SadnessFlavor

How you would like your sadness.

Constants

SEGFAULT_ADDRESS

This is the fixed address used to generate a segfault. It’s possible that this address can be mapped and writable by the your process in which case a crash may not occur

Functions

raise_abort⚠

SadnessFlavor::Abort

raise_bus⚠

SadnessFlavor::Bus

raise_floating_point_exception⚠

SadnessFlavor::DivideByZero

raise_illegal_instruction⚠

SadnessFlavor::Illegal

raise_segfault⚠

SadnessFlavor::Segfault

raise_stack_overflow⚠

SadnessFlavor::StackOverflow

raise_stack_overflow_in_non_rust_thread⚠

SadnessFlavor::StackOverflow

raise_stack_overflow_in_non_rust_thread_longjmp⚠

SadnessFlavor::StackOverflow

raise_stack_overflow_in_non_rust_thread_normal⚠

SadnessFlavor::StackOverflow

raise_trap⚠

SadnessFlavor::Trap