home.social

#trait — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #trait, aggregated by home.social.

  1. Rapid postfire color shift in a Mediterranean lizard
    zslpublications.onlinelibrary. | @jzoology.bsky.social

    #Lizards inhabiting recently burned areas display lighter coloration, as a #thermoregulatory response

    🧪🌍🔥🦎📏 #trait #fauna #zoology #JZoo #wildfire #fireecology #fire @ecology @wildfirescience

  2. Version 0.2.0 of voa-core, a #RustLang library for access to verifiers in #VOA hierarchies has just been released. 🦀 🥳

    crates.io/crates/voa-core/0.2.0

    In this version we have improved our handling of identifiers with the help of #winnow parsers.
    In addition we have added a #trait for generic writing of verifiers to VOA hierarchies.

    See the #changelog for further information:
    voa.archlinux.page/voa-core/CH

    #STF #ArchLinux #crate #cargo #DigitalSignature #Verification

  3. Who is a Democrat? What is this innate trait and why don't all the people around us have it? In a previous post it was us that a democrat is the opposite of an aristocrat. What is the essence of every democrat's character and mindset and why doesn't that change?

    worldtypology.com/2023/12/29/d

    #democrats #democrat #typology #worldtypology #personality #person #character #trait #humanity #people

  4. A quotation from Mignon McLaughlin

    The fault no child ever loses is the one he was most punished for.

    Mignon McLaughlin (1913-1983) American journalist and author
    The Neurotic’s Notebook, ch. 2 (1963)

    Sourcing, notes: wist.info/mclaughlin-mignon/76…

    #quote #quotes #quotation #qotd #badhabit #child #childhood #childrearing #fault #growingup #maturity #parenting #punishment #trait

  5. The Australian National University in #Canberra is advertising a position for a Data Lead to help deliver #FAIR #metadata and #data from their Australian #Plant #Phenotyping #Network node. They grow (mainly crop) plants under controlled conditions, measuring #environment and imaging the plants, then process the imagery to derive #trait data to support research. Data from all stages needs to be organised for long-term reuse and interoperability.

    jobs.anu.edu.au/jobs/data-lead

  6. Rust devs, have you ever needed a *Box<dyn Serialize>* ?
    I found a library just for that! 😋

    🦀 **erased_serde**: Use Serde's Serialize/Deserialize as trait objects.

    📚 Docs: docs.rs/erased-serde

    ⭐ GitHub: github.com/dtolnay/erased-serde

  7. I like the second way better too. I also like the idea of splitting the struct and its impls to its own file. Thanks everyone for your input.

    #Rust #Trait #Impl #Struct

  8. In Rust if I have some structs that each implement a couple traits, what is the preferred way to order things?

    trait … {}
    trait …{}

    struct …{}
    struct …{}
    struct …{}

    impl…for …{}
    impl…for …{}
    impl…for …{}
    impl…for …{}
    impl…for …{}
    impl…for …{}

    OR

    trait …{}
    trait …{}

    struct …{}
    impl…for …{}
    impl…for …{}

    struct …{}
    impl…for …{}
    impl…for …{}

    struct …{}
    impl…for …{}
    impl…for …{}

    OR, something else entirely?

    #Rust #Trait #Impl #Struct

  9. youtube.com/watch?v=JNZkn5rXhX

    Esta sesión consiste en entender los principios de operación de las
    macros, entender la sintaxis y principales símbolos. Se estudia la

    creación de estructura de árbol sintáctico del código, la tokenización y la generación de código con macros en *rust*.

    y también la creación de *derive* sobre un *trait*, en que se
    implementa la versión por defecto para aplicar a una estructura
    deseada.

    #macros #rust #derive #trait #proc-macro

  10. The #Rust #programming #language does not allow us to put a #trait on multiple #structs at the same time. It forces us to repeat the implementation for each applicable struct,

    That's a LOT of duplication, dear #rustlang.

    Can't Rust inherit default functions from inherited traits?

    Yes, yes it can:

    pub trait Child : Parent {
    fn do_something() -> T;
    }

    That child trait needs just 1 implementation.

    But now both traits need implemented for each applicable struct...