Used in a Sentence

unsized

Definition, parts of speech, synonyms, and sentence examples for unsized.

Editorial note

By the same token, watercolours (which are pretty much universally regarded as paints) do soak into unsized papers.

Examples17
Definitions1
Parts of speech1

Quick take

Not sized

Meaning at a glance

The clearest senses and uses of unsized gathered in one view.

adjective

Not sized

Definitions

Core meanings and parts of speech for unsized.

adjective

Not sized

Example sentences

1

By the same token, watercolours (which are pretty much universally regarded as paints) do soak into unsized papers.

2

Now in practice, if you encounter a type with an unsized type parameter, it's probably a smart pointer.

3

The unsized coercion you're thinking of is for converting trait object references to unsized trait object references; here we're talking about a field behind a reference.

4

In my understanding, Ada allows you to return unsized values, but it's generally implemented via a secondary stack.

5

It is really just a hack that reinterpretes the (vtable, ptr) of an unsized type as (len, ptr).

6

My understanding is that `async fn` in a trait is desugared to `fn() -> impl Future` just like it would be anywhere else, so there's no unsized types involved.

7

Every place there's an unsized array, something has to figure out how big it is and pass that info around.

8

And any pointer in Rust that targets an unsized type grows an additional metadata field (for trait objects, a vtable pointer).

9

I hope Rust will eventually make this kind of stuff easier (the nightly-only coerce-unsized would make that happen).

10

We are getting more and more MIR optimizations and without a semantics, the interactions of unsized locals with those optimizations are basically unpredictable.

11

You need to understand ownership, references, and unsized types.

12

You could ditch the concept of unsized types.

Quote examples

1

In Rust, trait objects are "unsized", which means they can only exist behind some kind of pointer.

2

Objects of type `Send` are "unsized" and must be held behind a pointer (which becomes a fat pointer).

3

It's like "I want a shared, immutable reference to something recursive, or unsized".

4

I'm sure that Ralf Jung would be happy to talk more about this if anyone has any ideas for how to move forward: "With #111374, unsized locals are no longer blatantly unsound.

Proper noun examples

1

Unsized locals are the only part of MIR that doesn't even have a proposed semantics that could be implemented in Miri.

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use unsized in a sentence?

By the same token, watercolours (which are pretty much universally regarded as paints) do soak into unsized papers.

What does unsized mean?

Not sized

What part of speech is unsized?

unsized is commonly used as adjective.