// generated by diplomat-tool
// dart format off

part of 'lib.g.dart';

/// See the [Rust documentation for `Weekday`](https://docs.rs/icu/2.2.0/icu/calendar/types/enum.Weekday.html) for more information.
enum Weekday {
  // ignore: public_member_api_docs
  monday,
  // ignore: public_member_api_docs
  tuesday,
  // ignore: public_member_api_docs
  wednesday,
  // ignore: public_member_api_docs
  thursday,
  // ignore: public_member_api_docs
  friday,
  // ignore: public_member_api_docs
  saturday,
  // ignore: public_member_api_docs
  sunday;

  int get _ffi {
    switch (this) {
      case monday:
        return 1;
      case tuesday:
        return 2;
      case wednesday:
        return 3;
      case thursday:
        return 4;
      case friday:
        return 5;
      case saturday:
        return 6;
      case sunday:
        return 7;
    }
  }

}

// dart format on
