Code Explainers
Code explainers tagged #enums
ruby
class Survey < ApplicationRecord has_many :questions, dependent: :destroy has_many :respondents, dependent: :nullify
Nested survey forms in Rails
nested-attributes
validations
associations
Intermediate
9 steps
rust
use std::error::Error; use std::fmt; #[derive(Debug)]
Building a typed error enum in Rust
error-handling
enums
trait-implementation
Intermediate
9 steps