awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعخادم MCPحولكيفية ترتيب النتائجالصحافة
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

20 مستودعات

Awesome GitHub RepositoriesGeneric Traits

Shared behaviors that operate on multiple types via generic parameters.

Distinct from Generic Types: Specifically targets traits that are themselves generic, as opposed to generic types.

Explore 20 awesome GitHub repositories matching programming languages & runtimes · Generic Traits. Refine with filters or upvote what's useful.

Awesome Generic Traits GitHub Repositories

اعثر على أفضل المستودعات باستخدام الذكاء الاصطناعي.سنبحث عن أفضل المستودعات المطابقة باستخدام الذكاء الاصطناعي.
  • sindresorhus/type-festالصورة الرمزية لـ sindresorhus

    sindresorhus/type-fest

    17,233عرض على GitHub↗

    type-fest is a library of reusable utility types for performing complex transformations and validations on objects, arrays, strings, and numeric ranges in TypeScript. It provides a collection of type definitions designed to handle advanced structural changes and constraints. The project distinguishes itself by offering specialized logic for string literal processing, such as casing transformations and pattern-based modifications, and type-level arithmetic for calculating numeric ranges and absolute values. It also includes utilities for enforcing deep immutability, ensuring union mutual exclu

    Provides a set of types for type-level arithmetic and numeric range validation.

    TypeScriptnpm-packagetypestypescript
    عرض على GitHub↗17,233
  • gcanti/fp-tsالصورة الرمزية لـ gcanti

    gcanti/fp-ts

    11,523عرض على GitHub↗

    fp-ts is a TypeScript library that brings pure functional programming patterns to the language through algebraic data types, type class abstractions, and composable combinators. It provides foundational data types like Option for optional values, Either for typed error handling, and Task for lazy asynchronous computations, all designed to make invalid states unrepresentable and side effects explicit. The library is built on category theory concepts, offering type classes such as Functor, Applicative, Monad, Semigroup, and Monoid with lawful instances for common data structures. The library di

    Simulates higher-kinded types in TypeScript to enable generic abstractions over type constructors.

    TypeScriptalgebraic-data-typesfunctional-programmingtypescript
    عرض على GitHub↗11,523
  • rust-lang/rust-by-exampleالصورة الرمزية لـ rust-lang

    rust-lang/rust-by-example

    8,026عرض على GitHub↗

    This project is an interactive programming education resource and tutorial designed for learning the Rust programming language and systems programming concepts. It provides a collection of runnable and editable code examples that serve as a practical reference for language syntax and implementation. The resource features an interactive code sandbox that allows users to execute and test code snippets in real time. It emphasizes the verification of technical accuracy by executing embedded code blocks during the build process to ensure all examples remain functional. The content covers a compre

    Explains how to define and implement traits that accept generic type parameters.

    Handlebars
    عرض على GitHub↗8,026
  • teivah/100-go-mistakesالصورة الرمزية لـ teivah

    teivah/100-go-mistakes

    7,915عرض على GitHub↗

    100 Go Mistakes is a reference book and code review companion that catalogues frequent Go programming anti-patterns and provides corrected implementations for each one. It covers a wide range of common pitfalls, from range loop variable capture and interface nil handling to error wrapping and map iteration randomization, helping developers recognize and avoid these issues in their own code. The project distinguishes itself by offering a structured, example-driven approach to learning idiomatic Go. It covers core design decisions such as when to use pointer versus value receivers, how to apply

    Shows how to extract common behaviors like sorting into generic functions.

    Gobookchinesedocumentation
    عرض على GitHub↗7,915
  • arktypeio/arktypeالصورة الرمزية لـ arktypeio

    arktypeio/arktype

    7,780عرض على GitHub↗

    Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with runtime data validation, allowing users to define type-safe schemas that ensure unknown data adheres to specific structures during application execution. The project distinguishes itself by using set-theory type analysis to determine intersections and subtype compatibility, alongside JIT-compiled validation functions for optimized performance. It supports advanced type modeling through branded type constraints, recursive alias resolution, and the ability to generate runtime valida

    Provides utility types to verify if a value is a number, integer, or specific constant like Infinity or NaN.

    TypeScriptjavascriptparsingruntime-typechecking
    عرض على GitHub↗7,780
  • millsp/ts-toolbeltالصورة الرمزية لـ millsp

    millsp/ts-toolbelt

    7,145عرض على GitHub↗

    ts-toolbelt is a collection of specialized utilities for manipulating and validating TypeScript types. It provides a toolkit for performing complex transformations on objects, unions, and functions to enforce strict data consistency at compile time. The library features dedicated transformers for function types, including utilities for currying, composition, and signature extraction. It also includes an object type manipulator for deep merging, patching, and reshaping complex structures. The capability surface extends to literal string processing, type-level arithmetic, and tuple operations.

    Provides helper types for performing mathematical addition and validation on numeric types.

    TypeScriptdynamic-typessafetytype-checking
    عرض على GitHub↗7,145
  • louthy/language-extالصورة الرمزية لـ louthy

    louthy/language-ext

    7,057عرض على GitHub↗

    language-ext is a functional programming framework for C# that provides a suite of immutable data structures and monadic types. It enables the implementation of pure functional programming patterns, utilizing containers to manage side effects, optional values, and error handling. The library is distinguished by its advanced concurrency and state management tools, including a software transactional memory system and lock-free atomic references. It also provides specialized utilities for distributed systems, such as vector clocks for causality tracking and deterministic data conflict resolution

    Simulates higher-kinded generics using traits to define common behaviors across different type constructors.

    C#
    عرض على GitHub↗7,057
  • rust-lang/rfcsالصورة الرمزية لـ rust-lang

    rust-lang/rfcs

    6,406عرض على GitHub↗

    The Rust RFCs repository is the formal home for the Rust language evolution process, housing the structured design documents and community review mechanisms that govern changes to the Rust programming language, its compiler, and its standard library. It defines the complete lifecycle for proposing, discussing, and implementing substantial changes through RFC documents, from initial submission and community feedback through final comment periods and sub-team sign-offs. The repository codifies the governance and collaboration processes that shape Rust's development, including mechanisms for com

    Defines the core numeric trait hierarchy used for generic programming over primitive types in Rust.

    Markdownrfcrfc-processrust
    عرض على GitHub↗6,406
  • image-rs/imageالصورة الرمزية لـ image-rs

    image-rs/image

    5,802عرض على GitHub↗

    مكتبة Rust لمعالجة الصور مصممة لتشفير وفك تشفير صيغ ملفات الصور المختلفة ومعالجة البكسلات. توفر المكتبة مجموعة أدوات لمعالجة الصور الرقمية ومجموعة من برامج ترميز صيغ الصور لقراءة البيانات من الملفات وكتابة مخازن الذاكرة إلى صيغ قياسية. تتميز المكتبة بخط معالجة يعتمد بالكامل على Rust لضمان أمان الذاكرة والتوافق عبر المنصات. وتتضمن نظام ربط (hooks) قابلاً للتوصيل لتسجيل الصيغ ديناميكياً، مما يسمح للمكتبات الخارجية (crates) بتسجيل فك تشفير وتشفير مخصص في وقت التشغيل. تغطي قدرات المكتبة معالجة الهندسة لتغيير الحجم والقص والتدوير، بالإضافة إلى إدارة الألوان لتحويل المساحات وتوليد التدرجات. كما تشمل أدوات لاستخراج وتضمين البيانات الوصفية مثل ملفات تعريف Exif وICC، وتوفر وظائف لتطبيق المرشحات البصرية وتعديلات المظهر. يتم ضمان الجودة من خلال اختبارات التشويه (fuzz testing)، باستخدام توليد مدخلات عشوائية لتحديد الثغرات في تحليل الملفات الثنائية.

    Defines common behaviors for image types and pixel formats using Rust traits to enable generic processing logic.

    Rustdecoding-imagespixelrust
    عرض على GitHub↗5,802
  • kaisery/trpl-zh-cnالصورة الرمزية لـ KaiserY

    KaiserY/trpl-zh-cn

    5,501عرض على GitHub↗

    This project is a localized educational resource for learning the Rust programming language, providing a comprehensive guide and technical specifications translated into Simplified Chinese. It serves as an instructional tool for studying language idioms, memory management, and type systems. The repository focuses on software documentation localization, converting official guides into Simplified Chinese to increase accessibility for non-English speakers. It utilizes a markdown-based system to organize content and supports multi-format export to static HTML, PDF, and EPUB formats for both web a

    Explains how to specify sets of methods that different types must implement to enable generic code restrictions.

    Markdownpdfrust-booktypst
    عرض على GitHub↗5,501
  • typelevel/catsالصورة الرمزية لـ typelevel

    typelevel/cats

    5,447عرض على GitHub↗

    Cats هو مكتبة برمجة وظيفية في Scala ومكتبة فئات الأنواع (Type Class) مصممة لتنفيذ الأنماط الجبرية والتجريدات الوظيفية. توفر مجموعة موحدة من الواجهات ومجموعة أدوات معيارية من الأغلفة والحاويات الوظيفية لتمكين تعدد الأشكال المخصص والبرمجة العامة عبر أنواع متباينة. يعمل المشروع كمعيار للتجريد الوظيفي، ويقدم مجموعة محولات الموناد (Monad Transformer) لتركيب سياقات التأثير المتداخلة والتعامل مع تأثيرات جانبية حسابية متعددة داخل خط أنابيب واحد. كما يتيح بناء لغات خاصة بالمجال (DSL) مضمنة من خلال تمثيل منطق البرنامج كهياكل بيانات يتم تفسيرها بشكل منفصل عن تعريفاتها. تغطي المكتبة مجالات قدرة واسعة بما في ذلك معالجة البيانات الجبرية لدمج وتقليل القيم، وإدارة الحالة الآمنة للأنواع، ومعالجة الأخطاء الوظيفية لإضفاء الطابع الرسمي على تراكم الأخطاء والتعافي منها. كما توفر أدوات لإدارة الحسابات ذات التأثير وتوسيع أنواع المجموعات القياسية بقدرات وظيفية. تتضمن المكتبة آليات للتحقق من القوانين الجبرية لضمان التزام مثيلات فئات الأنواع بالخصائص الرياضية.

    Defines type constructors capable of taking other type constructors as parameters for generic functional containers.

    Scala
    عرض على GitHub↗5,447
  • dimforge/nalgebraالصورة الرمزية لـ dimforge

    dimforge/nalgebra

    4,745عرض على GitHub↗

    nalgebra هي مكتبة جبر خطي لـ Rust توفر عمليات المصفوفات والمتجهات مع دعم للأبعاد في وقت التجميع ووقت التشغيل. تعمل كمكتبة للتحليل العددي ومكتبة للمصفوفات المتفرقة (Sparse matrix)، حيث توفر إطاراً رياضياً قادراً على العمل في البيئات المضمنة وWebAssembly دون الحاجة إلى مكتبة Rust القياسية. يتميز المشروع كمكتبة للتحويلات الهندسية، حيث يستخدم الإحداثيات المتجانسة، والكواتيرنيون، والقياسات المتساوية للتعامل مع الدورانات ثلاثية الأبعاد، والترجمات، والإسقاطات. ينفذ مجموعة متنوعة من تحليلات المصفوفات - بما في ذلك LU، وQR، وCholesky، وSVD، والتحليل الذاتي - لحل الأنظمة الخطية وتحليل المصفوفات. تغطي المكتبة مجالات قدرات واسعة بما في ذلك الحوسبة الهندسية للتحويلات المكانية، وأدوات رسومات الكمبيوتر لتكوين مصفوفة الإسقاط وتصدير بيانات التظليل، وإدارة المصفوفات المتفرقة المتخصصة باستخدام تخزين الصفوف والأعمدة المضغوط. كما توفر أدوات إدارة البيانات لتهيئة المصفوفات، وتغيير حجمها، وتحليل ملفات Matrix Market.

    Uses generic traits to provide a consistent interface for different matrix decompositions and linear solvers.

    Rustalgebralinear-algebramatrix
    عرض على GitHub↗4,745
  • scalaz/scalazالصورة الرمزية لـ scalaz

    scalaz/scalaz

    4,667عرض على GitHub↗

    Scalaz هي مكتبة برمجة وظيفية لـ Scala توفر مجموعة من هياكل البيانات الوظيفية البحتة وفئات النوع (type classes). تعمل كإطار عمل لتنظيم السلوكيات الوظيفية في تسلسلات هرمية لتمكين البرمجة العامة والتحويلات الآمنة من حيث النوع. تتضمن المكتبة أدوات لتكوين وإدارة التأثيرات الوظيفية المتداخلة داخل مكدس نوع واحد من خلال نظام محول الموناد (monad transformer). توفر هياكل بيانات لتمثيل ودمج تأثيرات الإدخال والإخراج والاختيارية. يغطي المشروع سطحًا واسعًا من التجريدات الوظيفية، بما في ذلك تنفيذ أنماط البرمجة المبدئية وإدارة عمليات الإدخال والإخراج كقيم من الدرجة الأولى. كما يوفر آليات لاستدعاء فئات النوع وتطبيق البنية الوظيفية على هياكل البيانات.

    Implements native higher-kinded type definitions to create generic interfaces for containers and effects.

    Scala
    عرض على GitHub↗4,667
  • dry-python/returnsالصورة الرمزية لـ dry-python

    dry-python/returns

    4,310عرض على GitHub↗

    Returns هي مكتبة برمجة وظيفية لـ Python توفر حاويات آمنة من حيث النوع لإدارة الحالة، ومعالجة الأخطاء، والاختيارية. تعمل كمكتبة حاويات مونادية (monadic) وإطار عمل لمعالجة الأخطاء آمن من حيث النوع، حيث تستبدل كتل try-catch التقليدية وفحوصات null بحاويات Result و Optional لمعاملة الاستثناءات كبيانات. يتميز المشروع باستخدامه لمكون إضافي متخصص للتحليل الثابت Mypy للتحقق من خطوط الأنابيب الوظيفية ومحاكاة الأنواع ذات الرتب الأعلى. يوفر آليات لعزل الآثار الجانبية من خلال حاويات IO ويقدم إطار عمل لحقن التبعية الآمن من حيث النوع الذي يؤجل توفير التبعيات حتى التنفيذ النهائي للحساب. تغطي المكتبة نطاقاً واسعاً من البدائيات الوظيفية، بما في ذلك التجزئة (currying)، والتطبيق الجزئي، وتكوين خطوط أنابيب البيانات التصريحية. تدعم إدارة سير العمل غير المتزامن عن طريق تغليف الـ coroutines في حاويات لسلسلة العمليات غير المحظورة وتتضمن أدوات مساعدة لإدارة دورة حياة الموارد والتحقق من القوانين الجبرية للحاويات المخصصة.

    Simulates higher-kinded types to allow generic functions to operate across various container types.

    Python
    عرض على GitHub↗4,310
  • rust-ndarray/ndarrayالصورة الرمزية لـ rust-ndarray

    rust-ndarray/ndarray

    4,290عرض على GitHub↗

    ndarray هي مكتبة مصفوفات متعددة الأبعاد لـ Rust تعمل كإطار عمل للجبر الخطي وأداة للحوسبة العلمية. توفر البنية التحتية الأساسية لإنشاء ومعالجة المصفوفات n-الأبعاد، وتعمل كمعالج مصفوفات متوازي ومجموعة أدوات لتحليل البيانات الرقمية. تتميز المكتبة بتوفير تقطيع (slicing) وعروض ذاكرة فعالة، مما يسمح بمشاركة البيانات دون نسخ. تستفيد من مكتبات الرياضيات الخلفية المحسنة لضرب المصفوفات عالي السرعة وتوزع التكرارات الرياضية الثقيلة عبر خيوط CPU متعددة لتسريع المعالجة. يغطي المشروع مجموعة واسعة من العمليات الرياضية، بما في ذلك الحساب العنصري، وتجميع البيانات القائم على المحور، وحسابات الضرب النقطي. كما يتضمن أدوات شاملة لمعالجة المصفوفات مثل إعادة التشكيل، والتسطيح، والتكديس، وتوليد شبكة الإحداثيات، إلى جانب دعم توليد المصفوفات العشوائية والتسلسل.

    Uses generics and numeric traits to apply mathematical operations across different numeric types and dimensions.

    Rust
    عرض على GitHub↗4,290
  • redis-rs/redis-rsالصورة الرمزية لـ redis-rs

    redis-rs/redis-rs

    4,225عرض على GitHub↗

    redis-rs هي مكتبة عميل للتفاعل مع مخازن بيانات Redis باستخدام واجهات Rust المتزامنة وغير المتزامنة. تعمل كمحرك لتنفيذ التخزين المؤقت للبيانات، وإدارة الجلسات، وتخزين البيانات العام. تتميز المكتبة بدعم متخصص لبيئات Redis Cluster، بما في ذلك توجيه العقد المدرك للمجموعات وإدارة البيانات الموزعة. وتتميز بإلغاء تسلسل بدون نسخ (zero-copy) لتقليل تخصيصات الذاكرة ونموذج اتصال متعدد الإرسال (multiplexed) يسمح لطلبات متزامنة متعددة بمشاركة اتصال شبكة واحد. يغطي المشروع سطح قدرات واسع بما في ذلك تخزين مستندات JSON، وتجميع الأوامر (pipelining) مع معالجة الفشل الجزئي، وتجميع الاتصالات (connection pooling). يتم توفير اتصال آمن عبر تشفير TLS والمصادقة المستندة إلى الرموز المميزة عبر Azure Entra ID. يتم دعم التطوير من خلال محاكاة الاتصال لاختبارات الوحدة والتكامل.

    Uses generic conversion traits to map raw Redis responses into strongly typed Rust values.

    Rust
    عرض على GitHub↗4,225
  • petgraph/petgraphالصورة الرمزية لـ petgraph

    petgraph/petgraph

    3,938عرض على GitHub↗

    petgraph is a graph data structure library for the Rust programming language. It provides a collection of tools for representing and manipulating graphs, functioning as a network analysis tool and a comprehensive graph algorithm suite. The library integrates with Graphviz DOT for importing, exporting, and parsing graph data to facilitate visualization. It distinguishes itself by offering specialized network analysis capabilities, such as the detection of cliques, bridge edges, articulation points, and subgraph isomorphisms. Its computational surface covers a wide range of algorithms, includi

    Defines common graph behaviors via generic interfaces to allow different internal storage layouts.

    Rustgraph-algorithmsrust
    عرض على GitHub↗3,938
  • nrc/r4cpppالصورة الرمزية لـ nrc

    nrc/r4cppp

    3,857عرض على GitHub↗

    This project is an educational resource and technical reference library designed to assist experienced systems engineers in transitioning from C++ to Rust. It provides a structured curriculum that maps familiar programming patterns, syntax, and memory management techniques to their counterparts in the Rust ecosystem. The platform focuses on bridging the mental model gap between manual memory management and Rust’s ownership and borrowing rules. By aligning complex type systems, trait-based polymorphism, and template metaprogramming, it clarifies how to achieve performance parity through zero-c

    Clarifies how trait-based polymorphism and generic types in Rust serve as equivalents to C++ template metaprogramming.

    Rust
    عرض على GitHub↗3,857
  • raml-org/raml-specالصورة الرمزية لـ raml-org

    raml-org/raml-spec

    3,850عرض على GitHub↗

    RAML is a declarative YAML-based specification language used for modeling RESTful interfaces and data structures. It functions as a contract-first API framework and modeling standard, establishing a formal agreement for service communication and a single source of truth before implementation begins. The specification enables the automation of functional mock servers and the generation of language-specific client SDKs directly from the definition files. It supports a modular approach to API design through the use of external libraries, overlays for extending contracts, and reusable traits and

    Applies reusable sets of methods and headers to multiple endpoints to ensure consistency across similar API resources.

    عرض على GitHub↗3,850
  • foonathan/type_safeالصورة الرمزية لـ foonathan

    foonathan/type_safe

    1,641عرض على GitHub↗

    This library is a collection of zero-overhead C++ abstractions designed to replace primitive types with strict wrappers. By leveraging template metaprogramming, it enforces compile-time type safety and validates data integrity, ensuring that logic errors are caught during the build process rather than at runtime. The project distinguishes itself by providing a zero-cost abstraction layer that maps high-level type safety wrappers directly to machine instructions. It utilizes static type identity enforcement to treat logically distinct data as incompatible types, even when they share the same u

    Provides strict numeric type enforcement to prevent accidental data loss or invalid arithmetic.

    C++c-plus-plustype-safety
    عرض على GitHub↗1,641
  1. Home
  2. Programming Languages & Runtimes
  3. Generic Types
  4. Generic Traits

استكشف الوسوم الفرعية

  • Associated ItemsDefines types, constants, lifetimes, and functions within a trait to group related items into a single package. **Distinct from Generic Traits:** Distinct from Generic Traits: focuses on the definition of associated items (types, constants, lifetimes, functions) within traits, not traits that are themselves generic.
  • Behavior Extractions with GenericsExtracts common behaviors like sorting into generic functions that work across different types sharing the same methods. **Distinct from Generic Traits:** Distinct from Generic Traits: focuses on extracting shared behaviors into generic functions, not defining generic traits themselves.
  • Data Type ConversionsGeneric traits used to map raw data store bytes to high-level language types. **Distinct from Generic Traits:** Specializes generic traits specifically for database-to-language type mapping.
  • Higher-Kinded Type Simulation2 وسوم فرعيةTechniques for simulating higher-kinded types in languages that do not natively support them. **Distinct from Generic Traits:** Focuses on the simulation of higher-kinded generics (like Functor/Monad traits) specifically, rather than standard generic traits.
  • Image Processing TraitsRust traits that define shared behaviors for different image types and pixel formats. **Distinct from Generic Traits:** Specializes generic traits for image-specific operations and pixel-level logic.
  • Numeric Type Traits2 وسوم فرعيةTraits like Int, UnsignedInt, Signed, Float, and FloatMath for generic programming over primitive numeric types. **Distinct from Generic Traits:** Distinct from Generic Traits: specifically defines traits for numeric types, not generic traits in general.
  • Trait-Based Polymorphism3 وسوم فرعيةDefining shared behavior across different types using traits to enable generic constraints. **Distinct from Generic Traits:** Focuses on the general concept of shared behavior rather than traits that are themselves generic